0

我按照 Gilbert Tunner 教程使用 Tensorflow 2 进行对象检测,但在训练期间出现此错误model_main_ft2.py

回溯(最近一次通话最后):

文件“model_main_tf2.py”,第 113 行,在 tf.compat.v1.app.run() 文件“C:\Users\anaconda3\envs\tensorflow2\lib\site-packages\tensorflow\python\platform\app.py ",第 40 行,运行中 _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) 文件“C:\Users\anaconda3\envs\tensorflow2\lib\site-packages\absl\app.py”,第 300 行,在运行 _run_main(main, args) 文件“C:\Users\anaconda3\envs\tensorflow2\lib\site-packages\absl\app.py”,第 251 行,在 _run_main sys.exit(main(argv)) 文件中“ model_main_tf2.py”,第 110 行,在主 record_summaries=FLAGS.record_summaries)文件“C:\Users\anaconda3\envs\tensorflow2\lib\site-packages\object_detection\model_lib_v2.py”,第 566 行,在 train_loop unpad_groundtruth_tensors)文件“C:\Users\anaconda3\envs\tensorflow2\lib\site-packages\object_detection\model_lib_v2.py”,第 339 行,在 load_fine_tune_checkpoint 如果不是 is_object_based_checkpoint(checkpoint_path):文件“C:\Users\anaconda3\envs\tensorflow2\lib\site -packages\object_detection\model_lib_v2.py",第 302 行,在 is_object_based_checkpoint var_names = [var[0] for var in tf.train.list_variables(checkpoint_path)] 文件“C:\Users\anaconda3\envs\tensorflow2\lib\site -packages\tensorflow\python\training\checkpoint_utils.py”,第 112 行,在 list_variables reader = load_checkpoint(ckpt_dir_or_file) 文件“C:\Users\anaconda3\envs\tensorflow2\lib\site-packages\tensorflow\python\training\ checkpoint_utils.py”,第 67 行,在 load_checkpoint 返回 py_checkpoint_reader.NewCheckpointReader(filename) 文件“C:\Users\anaconda3\envs\tensorflow2\lib\site-packages\tensorflow\python\training\py_checkpoint_reader.py”,第 99 行,在 NewCheckpointReader error_translator(e) 文件“C:\Users\anaconda3\envs\tensorflow2\lib\ site-packages\tensorflow\python\training\py_checkpoint_reader.py",第 35 行,在 error_translator 中引发 errors_impl.NotFoundError(None, None, error_message) tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching C:/Users/Desktop/Tutorial/models/research/object_detection/efficientdet_d0_coco17_tpu-32/chechpoint/ckpt-0 的文件,第 35 行,在 error_translator 中引发 errors_impl.NotFoundError(None, None, error_message) tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for C:/Users/Desktop/Tutorial/models/research /object_detection/efficientdet_d0_coco17_tpu-32/chechpoint/ckpt-0,第 35 行,在 error_translator 中引发 errors_impl.NotFoundError(None, None, error_message) tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for C:/Users/Desktop/Tutorial/models/research /object_detection/efficientdet_d0_coco17_tpu-32/chechpoint/ckpt-0

efficientdet_d0_coco17_tpu-32在对象检测文件夹中创建了文件夹,下载并解压缩了我的模型。我已经修改了培训文件夹中的模型,添加了一个检查点 PATH。

4

1 回答 1

0

来自评论

错误是尺寸超过efficentdetd0尺寸请求的图像(从 dons21 转述)

于 2021-02-24T15:53:46.883 回答