Open Ryotarosaba opened 3 years ago
any update?
No、same condition.
I have used this repo for converting my custom YOLO v4 tiny model to TensorFlow. I too faced the same error. When I dug deeper into code, by default the code in "./core/utils.py" is taking "./data/classes/coco.names" in line no. 78. I gave the path to my own "obj.names" and it worked. Please give the path of your "obj.names" or "*.names" in line no. 78 of "./core/utils.py".
Sample:
with open("path/to/your/obj.names", 'r') as data:
Or edit __C.YOLO.CLASSES = "path/to/your/obj.names" in config.py in line no. 14
To nagi1995 I made the correction as you pointed out. Then, I was able to execute it without any error! Thank you for your advice! !! !!
I have used this repo for converting my custom YOLO v4 tiny model to TensorFlow. I too faced the same error. When I dug deeper into code, by default the code in "./core/utils.py" is taking "./data/classes/coco.names" in line no. 78. I gave the path to my own "obj.names" and it worked. Please give the path of your "obj.names" or "*.names" in line no. 78 of "./core/utils.py".
Sample:
with open("path/to/your/obj.names", 'r') as data:
Or edit __C.YOLO.CLASSES = "path/to/your/obj.names" in config.py in line no. 14
@nagi1995 Thank you so much bro. It fixed that. you did me so much favor. @hunglc007 and please fix this bug.
Check that there is no empty lines in your obj.names. That helps me.
I have same issue when I run save_model.py.
!python save_model.py \ --weights yolov4-tiny_ver3_final.weights \ --output ./checkpoints/yolov4-tiny_ver3 \ --input_size 416 \ --model yolov4 \ --tiny true \ --framework tflite
error belows:
Please help me.
Thank you. However, I am still getting the same error with this repo. Please let me know if there is another solution. Thank you in advance.
Sorry,the reason for the error was probably because the model was trained on my original cfg. (different number of convs). So, I need to rewrite YOLOv4_tiny in /core/yolov4.py.
I am facing the following error:
What I did -Changed config.py as follows.
-The execution code is as follows.
-obj.names is as follows.
Would you please solve this problem? Thank you.