我正在尝试使用张量流重新训练模型,但是当我运行retrain.py时出现此错误
Traceback (most recent call last):
File "retrain.py", line 1329, in <module>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "C:\Program Files\Python36\lib\site-packages\tensorflow_core\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "C:\Program Files\Python36\lib\site-packages\absl\app.py", line 299, in run
_run_main(main, args)
File "C:\Program Files\Python36\lib\site-packages\absl\app.py", line 250, in _run_main
sys.exit(main(argv))
File "retrain.py", line 1127, in main
ground_truth_input: test_ground_truth})
File "C:\Program Files\Python36\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run
run_metadata_ptr)
File "C:\Program Files\Python36\lib\site-packages\tensorflow_core\python\client\session.py", line 1156, in _run
(np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (0,) for Tensor 'input_1/BottleneckInputPlaceholder:0', which has shape '(?, 1001)'
我进入images文件夹,并将两个图像放在子文件夹中,我不知道是否是这个错误。