一,下载名称为archive数据集
下载方式:机房共享文件夹
二、打开CatDogProject项目
配置环境:选择你所建的环境
三、调试运行
1,报错一:Traceback (most recent call last):
File "G:/AI_Project/CatDogProject/train.py", line 1, in <module>
from keras.preprocessing.image import ImageDataGenerator
ModuleNotFoundError: No module named 'keras'
解决方式:在你所建的环境中,安装Keras库,安装方式:
代码:conda install keras
当出现这一行的时候,后面输入y
再次运行,又会出现以下报错:
2,
Traceback (most recent call last): File "G:/AI_Project/CatDogProject/train.py", line 1, in <module> from keras.preprocessing.image import ImageDataGenerator File "D:\Anaconda\envs\guomao_env\lib\site-packages\keras\__init__.py", line 20, in <module> from keras import distribute File "D:\Anaconda\envs\guomao_env\lib\site-packages\keras\distribute\__init__.py", line 18, in <module> from keras.distribute import sidecar_evaluator File "D:\Anaconda\envs\guomao_env\lib\site-packages\keras\distribute\sidecar_evaluator.py", line 17, in <module> import tensorflow.compat.v2 as tf ModuleNotFoundError: No module named 'tensorflow'
解决方式:在你所建的环境中,继续安装TensorFlow模块,过程同1