![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CV
cyber_1987
专注数据的数据分析师,以Python、VBA、Power query为主
展开
-
【Tensorflow2】使用简单的CNN网络实现图像分类
不废话,直接上代码…一、数据读取和构建数据集import osimport pandas as pdimport numpy as npimport tensorflow as tfimport warningswarnings.filterwarnings('ignore')from tensorflow.keras.preprocessing import image_dataset_from_directorytrain_dir = '/home/workspace/train/'原创 2021-11-30 18:24:09 · 3199 阅读 · 0 评论 -
【Tensorflow 2】使用迁移学习(MobileNet)完成图像分类任务
前言:图像分类是CV领域相对比较成熟的一种技术,一般从基础开始学就是Tensorflow——>CNN——>手撸ResNet等算法——>迁移学习。Tensorflow.keras.applications中有很多迁移学习的算法,只需要加载后下载参数,然后fine_tune稍微训练最后几层,就可以获得非常不错的效果。本文主要是通过一系列代码指导大家如何完成迁移学习的使用。一、导入数据,制作dataset因为是图片,所以我们首先就是需要把图片转换成Tensorflow能理解的向量形式。另原创 2021-11-28 19:36:35 · 4770 阅读 · 13 评论 -
ResNet18代码实现(tensorflow,80行)
前言:ResNet18的实现还是相对比较简单的,一共就18次卷积,从数据加载到最后完成验证不到80行import tensorflow as tfimport pandas as pdimport numpy as npfrom tensorflow.keras import layersfrom sklearn.metrics import classification_reportimport warningswarnings.filterwarnings('ignore')#数据导原创 2021-08-13 15:12:19 · 4094 阅读 · 6 评论