参考文献:
https://blog.csdn.net/ZeyiRTangent/article/details/87886445

#准备:

1.五个分类好存有各自类别的文件夹【文件夹及其内图片的名称全小写,绝对路径名中不能包含中文】

2.inception_v3模型下载,无需解压【http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz】

3.克隆/下载 https://github.com/tensorflow/tensorflow & https://github.com/tensorflow/hub (在~hub-master\examples\image_retraining中找到retrain.py文件,待会需要定位文件位置)

。。。


可能遇到的问题:

查看Windows下TensorFlow对python版本的要求
https://blog.csdn.net/sinat_23619409/article/details/84202596

windows10 conda python多版本切换
https://www.cnblogs.com/simuhunluo/p/8540459.html

windows 怎么更新 Python 版本(现有 Python 版本装了很多库)卸载重装,工作量就大了,有没有什么直接更新的方式,不会删库那种办法
https://www.v2ex.com/amp/t/477473

conda(anaconda)删除清华源,改回原源
https://blog.csdn.net/qinglingLS/article/details/89363368

PackagesNotFoundError: The following packages are not available from current channels:
https://blog.csdn.net/miao0967020148/article/details/85230430

迁移学习关于下载不了inception-v3,自己网络又加载不了的问题
https://blog.csdn.net/nationalline450/article/details/82085007

原址:
https://tfhub.dev/google/imagenet/inception_v3/feature_vector/3

出现以下报错:

Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.10.4, library is 1.10.5
        SUMMARY OF THE HDF5 CONFIGURATION
        =================================

General Information:
-------------------
                   HDF5 Version: 1.10.5
                  Configured on: 2019-03-04
  
... ... ... 
... ... ... 
 
          Function Stack Tracing: OFF
       Strict File Format Checks: OFF
    Optimization Instrumentation:
Bye...

(多版本导致冲突)pip uninstall h5py
Ubuntu: HDF5报错: HDF5 header version与HDF5 library不匹配
https://www.cnblogs.com/platero/p/4077934.html

Python环境中HDF5报错:HDF5 library version mismatched error
https://blog.csdn.net/zhaoyin214/article/details/104095227

使用conda装完plt/pillow后,错误又出来了,详细看,conda在安装pillow时帮你安装hdf5版本了:
再卸载一次h5py,然后可能提示:

ModuleNotFoundError: No module named 'matplotlib' , python导入'matplotlib'包报错

解决:https://blog.csdn.net/weixin_43670105/article/details/87911820

【不能解决】 UserWarning: h5py is running against HDF5 1.10.2 when it was built against 1.10.3, this may ca...
https://www.jianshu.com/p/c248bbea1da7

tensorflow版本:2.0过高怎么办?

解决:

适当回退tensorflow版本:
pip install tensorflow==1.13.1

安装Tensorflow 2.0后的坑has no attribute 'contrib'
https://blog.51cto.com/cfy10/2446977?source=dra

ModuleNotFoundError: No module named 'tensorflow.contrib.rnn'
https://blog.csdn.net/u014742995/article/details/86496292

提示python版本过高、冲突(tensorflow版本)怎么办?

conda install python=3.6

Anaconda中将python 3.7版本退回python 3.6版本
https://blog.csdn.net/Fhujinwu/article/details/85851587

遇到 label xxx no image found 类问题:
如 提示:

CRITICAL:tensorflow:Label 51 has no images in the category validation.
Tensorflow - No valid folders of images found at XXXXX #10104
ERROR:tensorflow:No valid folders of images found at

https://github.com/tensorflow/tensorflow/issues/10104
http://www.codeclip.com/4141.html

参考文献:

https://blog.csdn.net/ZeyiRTangent/article/details/87886445

相似推荐,有助思考:

https://blog.csdn.net/weixin_38663832/article/details/80555341
https://blog.csdn.net/EZ_guachong/article/details/90048846
https://github.com/sourcedexter/tfClassifier
https://stackoverflow.com/questions/45076911/tensorflow-failed-to-create-a-newwriteablefile-when-retraining-inception

迁移学习

https://blog.csdn.net/chaipp0607/article/details/73380390
https://blog.csdn.net/Night___Raid/article/details/102975023