Traceback (most recent call last): File "D:\23101\yolov5-master\jjjjjj.py", line 7, in <module> converter = tf.lite.TFLiteConverter.from_saved_model('best.onnx') File "E:\ProgramFile\Anaconda\anaconda3\envs\python39\lib\site-packages\tensorflow\lite\python\lite.py", line 1270, in from_saved_model saved_model = _load(saved_model_dir, tags) File "E:\ProgramFile\Anaconda\anaconda3\envs\python39\lib\site-packages\tensorflow\python\saved_model\load.py", line 869, in load return load_internal(export_dir, tags, options)["root"] File "E:\ProgramFile\Anaconda\anaconda3\envs\python39\lib\site-packages\tensorflow\python\saved_model\load.py", line 881, in load_internal loader_impl.parse_saved_model_with_debug_info(export_dir)) File "E:\ProgramFile\Anaconda\anaconda3\envs\python39\lib\site-packages\tensorflow\python\saved_model\loader_impl.py", line 56, in parse_saved_model_with_debug_info saved_model = _parse_saved_model(export_dir) File "E:\ProgramFile\Anaconda\anaconda3\envs\python39\lib\site-packages\tensorflow\python\saved_model\loader_impl.py", line 113, in parse_saved_model raise IOError( OSError: SavedModel file does not exist at: best.onnx\{saved_model.pbtxt|saved_model.pb}
时间: 2023-06-30 10:05:02 浏览: 108
BM3D-Denoise-master.rar
这个错误提示是因为代码中使用了一个不存在的 SavedModel 文件 "best.onnx",请确认该文件是否存在,或者你需要更正文件路径。同时,你也可以检查一下文件格式是否正确,因为 ".onnx" 文件通常是用于其他框架的模型文件格式,而不是 TensorFlow 的 SavedModel 格式。
阅读全文