Error when converting YoloV4 model using the converter
See original GitHub issueTrying to convert YoloV4 model to IR using converter.py
:
python3 /home/open_model_zoo/tools/downloader/converter.py --name yolo-v4-tf --mo /opt/intel/openvino/deployment_tools/model_optimizer/mo.py
But get the error:
tensorflow.python.framework.errors_impl.FailedPreconditionError: /home/open_model_zoo/public/yolo-v4-tf/yolo-v4.savedmodel is not a directory
Traceback (most recent call last):
File "/home/open_model_zoo/models/public/yolo-v4-tf/pre-convert.py", line 40, in <module>
main()
File "/home/open_model_zoo/models/public/yolo-v4-tf/pre-convert.py", line 36, in main
], check=True)
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '--', '/home/open_model_zoo/public/yolo-v4-tf/keras-YOLOv3-model-set/tools/model_converter/convert.py', '/home/open_model_zoo/public/yolo-v4-tf/keras-YOLOv3-model-set/cfg/yolov4.cfg', '/home/open_model_zoo/public/yolo-v4-tf/yolov4.weights', '/home/open_model_zoo/public/yolo-v4-tf/yolo-v4.savedmodel', '--yolo4_reorder']' returned non-zero exit status 1.
FAILED:
yolo-v4-tf
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Error in Yolov4 engine conversion, - TAO Toolkit
Hi @Morganh I am getting following error during generation of Yolo engine through tlt-converter. ./tlt-converter -k nvidia_tlt \ > -d ...
Read more >[Solved] Errors in converting Tensorflow Model to ... - GitHub
I wanted to use yolov4-tiny in the Tensorflow lite framework. I converted my darknet weights trained from @AlexeyAB using these commands: ...
Read more >Tiny yolo v4 IR model conversion errors - Intel Communities
Hi there, I recently got a intel Neural compute stick and I plan on running a custom yolo v4 model for object detection...
Read more >Unable to convert YOLOv4 to tflite - Stack Overflow
Conversion to TFLite model from frozen inference graph (.pb) failing? 1 · How to convert tf2 model so it will run on tflite...
Read more >Converting TensorFlow YOLO Models
This section explains how to convert the YOLOv4 Keras model from the ... To solve the problems explained in the YOLOv3 architecture overview...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vladimir-dudnik we internally discussed issue. The issue connected with running downloader and converter from different release versions. in 2021.4 we migrate on usage saved model instead keras h5 format to simplify model conversion. It made downloader postprocessing from 2021.3 is not compatible with pre-convert script in 2021.4. Now, it is solved by usage scripts from the same release.
@likholat You’ve closed the issue, so seems you solved the problem? If someone will look for yolo-v4 related issues it might be not clear if you close the issue because simple decide to stop work with yolo-v4 model or you have find and solved problem.