xungeer29 / AI-Challenger-Plant-Disease-Recognition

AI Challenger -- 农作物病害识别
132 stars 47 forks source link

Code problem #3

Open caizhuo opened 5 years ago

caizhuo commented 5 years ago

在运行的过程中,我遇到这样一个问题,并且我是在windows系统中运行:

Traceback (most recent call last): File "plant_disease.py", line 420, in tf.app.run() File "D:\software\Anaconda3\envs\pytorch36\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "plant_disease.py", line 362, in main jpeg_data_tensor, bottleneck_tensor) File "plant_disease.py", line 156, in get_batch_images bottleneck_values = get_or_create_bottleneck(sess, image_name,image_path, category, jpeg_data_tensor, bottleneck_tensor) File "plant_disease.py", line 98, in get_or_create_bottleneck image = gfile.FastGFile(image_dir, 'rb').read() File "D:\software\Anaconda3\envs\pytorch36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 118, in read self._preread_check() File "D:\software\Anaconda3\envs\pytorch36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 78, in _preread_check compat.as_bytes(self.name), 1024 * 512, status) File "D:\software\Anaconda3\envs\pytorch36\lib\contextlib.py", line 88, in exit__ next(self.gen) File "D:\software\Anaconda3\envs\pytorch36\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status pywrap_tensorflow.TF_GetCode(status)) tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: ./data/AgriculturalDisease_trainingset/images/c0cd110f-ee8a-428e-aa00-d51f89b5a843___GHLB2 Leaf 8639 - 副本.JPG : ϵͳ\udcd5Ҳ\udcbb\udcb5\udcbdָ\udcb6\udca8\udcb5\udcc4\udcceļ\udcfe\udca1\udca3

我想请问该如何解决?