-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got error white coverting to IR using mo.py #44
Comments
Hi @tarunmcom |
I have encounter a similiar error.when i use the yolo_v4_tiny.json,I got |
@su26225 |
I use yolov4-tiny.weights,after the train of darknet |
@su26225 |
python convert_weights_pb.py --class_names cfg/coco.names --weights_file yolov4-tiny-custom_last.weights --data_format NHWC you didn't add --tiny |
This is the cammands I used: If I use the yolov4.json,I will get the error: |
python convert_weights_pb.py --class_names cfg/coco.names --weights_file yolov4-tiny-custom_last.weights --data_format NHWC --tiny |
python "C:\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo.py" --input_model frozen_darknet_yolov4_model.pb --transformations_config yolov4.json --batch 1 --reverse_input_channels This is also wrong python "C:\Intel\openvino_2021.3.394\deployment_tools\model_optimizer\mo.py" --input_model frozen_darknet_yolov4_model.pb --transformations_config yolo_v4_tiny.json --batch 1 --reverse_input_channels |
I got it . I used the convert_weights_pb.py in branch of v4-tiny-3l , it doesn't have the flag.tiny. |
How many classes your custom model has? |
yes,I have changed the number of classes from 80 to 2 , but it still have the error . |
python convert_weights_pb.py --class_names cfg/coco.names --weights_file yolov4-tiny-custom_last.weights --data_format NHWC --tiny you still use coco.names here |
I have chaned the content of coco.names . It has only two labels in it . |
It's clear that yolov4 and yolov4-tiny use master branch,yolov4-tiny-3l use tiny-3l branch And then you only need to change coco.names and .json for custom model. |
Thanks . I have solved this issue through upgrading tensorflow version from 1.15 to 2.0 |
I downloaded yolo-v4-tiny.weights and converted to pb using provided script. But got error in the next step:-
Model Optimizer version:
[ ERROR ] Exception occurred during running replacer "TFYOLOV3" (<class 'extensions.front.YOLO.YoloV3RegionAddon'>): TensorFlow YOLO V3 conversion mechanism was enabled. Entry points "detector/yolo-v4/Reshape, detector/yolo-v4/Reshape_4, detector/yolo-v4/Reshape_8" were provided in the configuration file. Entry points are nodes that feed YOLO Region layers. Node with name detector/yolo-v4/Reshape doesn't exist in the graph. Refer to documentation about converting YOLO models for more information.
Please help
The text was updated successfully, but these errors were encountered: