tensorflow.python.framework.errors_impl.InvalidArgumentError?

时间:2019-07-23 18:18:54

标签: python tensorflow anaconda jpeg

我正在制作对象检测API,在培训过程中我要在其中。在运行命令“ python train.py --logtostderr --train_dir = training / --pipeline_config_path = training / faster_rcnn_inception_v2_pets.config”时,这里遇到错误。

向协调器报告错误:,无效的JPEG数据或裁剪窗口,数据大小106496          [[{{node case / cond / cond_jpeg / DecodeJpeg}}]]          [[IteratorGetNext]] I0723 21:43:31.274904 24088 learning.py:507]全局步骤210:损失= 0.8324(0.290秒/步) I0723 21:43:31.275902 24088 learning.py:785]完成培训!将模型保存到磁盘。 C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ summary \ writer \ writer.py:386:UserWarning:尝试使用封闭的FileWriter。除非显式重新打开FileWriter,否则该操作将为noop。   warnings.warn(“尝试使用封闭的FileWriter。” 追溯(最近一次通话):   文件“ train.py”,行184,在     tf.app.run()   运行中的文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ platform \ app.py”,第40行     _run(main = main,argv = argv,flags_parser = _parse_flags_tolerate_undef)   运行中的文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ absl \ app.py”,第300行     _run_main(main,args)   文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ absl \ app.py”,第251行,位于_run_main中     sys.exit(main(argv))   文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ util \ deprecation.py”,行324,在new_func中     return func(* args,** kwargs)   在主文件中的文件“ train.py”,第180行     graph_hook_fn = graph_rewriter_fn)   火车上的文件“ C:\ tensorflow1 \ models \ research \ object_detection \ legacy \ trainer.py”,行416     saver = saver)   在火车上的第790行“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ contrib \ slim \ python \ slim \ learning.py”     ignore_live_threads = ignore_live_threads)   文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ training \ supervisor.py”,第839行,处于停止状态     ignore_live_threads = ignore_live_threads)   连接中的文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ training \ coordinator.py”,行389     6.reraise(* self._exc_info_to_raise)   重新增加文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ six.py”的第693行     提高价值   _run中的文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ training \ queue_runner_impl.py”,第257行     enqueue_callable()   文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ client \ session.py”,行1279,在_single_operation_run中     self._call_tf_sessionrun(无,{},[],target_list,无)   文件“ C:\ Users \ Gagan Singh \ AppData \ Roaming \ Python \ Python37 \ site-packages \ tensorflow \ python \ client \ session.py”,行1429,在_call_tf_sessionrun中     run_metadata) tensorflow.python.framework.errors_impl.InvalidArgumentError:无效的JPEG数据或裁剪窗口,数据大小106496          [[{{node case / cond / cond_jpeg / DecodeJpeg}}]]          [[IteratorGetNext]]

任何人,请帮帮我。谢谢!

0 个答案:

没有答案