-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
OpenVINO auto annotation mode (import issue) #516
Comments
Thanks for replying @nmanovic Yes, you 're right I have "import" in my interpretation script. But when I remove them I still got the same error. this is my original script with imports :import numpy as np conf_threshold = 0.25 def clip(value): for frame_results in detections:
this is my new script without imports :def clip(value): for frame_results in detections:
is there any other solution to use yolo custom model with cvat auto annotation model ? |
@BOUKARY , could you please attach json, py files? Also need your bin and xml files. We will look on our side. |
@nmanovic, looks like with my local testing that #514 actually won't let you import new modules in code. Looks like a byproduct of the Once #514 lands, I'll try to go back and allow importing in. |
These are the files I tried to upload Please remove ".txt" from filename, github doesnt support these extensions. bin file is to big, github doesnt let me upload it frozen_darknet_yolov3_model.xml.txt |
@benhoff even with a script without import, it gives the same error. |
@BOUKARY , if you can share weights using other methods it will be easy for us to debug. Did you use the repo https://github.com/ultralytics/yolov3? |
@BOUKARY What's the latest error you are getting and what version of openvino are you using? |
#545 should allow the original poster to use any version of openvino that they desire by uploading a custom |
Sorry for the late reply @benhoff i m using l_openvino_toolkit_p_2019.1.144 (openvino 2019 R1.1), Build date:14 May 2019. it s the last version in intel website. |
This comment has been minimized.
This comment has been minimized.
@BOUKARY can you try the latest version of Cvat? There's better support for error messages now and openvino 2019 support included now. |
It should work in develop branch. |
I also had a similar error. I ran a custom yolov3 model.(.xml, .bin, .json and interpret.py). I got this error: Checking request has returned the "failed" status. Message: Exception: Model was not properly created/updated. Test failed: Expecting property name enclosed in double quotes: line 20 column 5 (char 474) |
@ThomasBomjan , please use https://github.com/opencv/cvat/blob/develop/utils/auto_annotation/run_model.py script to debug your files. |
Hi @nmanovic Thank you for the script. I followed it up and ran the script. From here as well https://github.com/benhoff/cvat/tree/show-images/utils/auto_annotation. I got importErro : No module python3 utils/auto_annotation/run_model.py --py ~/Downloads/Models/script_yolo.py --xml ~/Downloads/darknet_yolov3_model.xml --bin ~/Downloads/darknet_yolov3_model.bin --json During handling of the above exception, another exception occurred: Traceback (most recent call last): |
@ThomasBomjan , we will fix the script. It should not require settings for sure. |
@ThomasBomjan #650 should fix your above issue. Can you pull the latest code down and try again? |
@benhoff I pulled the code and tried it again.I end up getting similar kind of error. I have hunch that it is due to interpretation script. Still cannot figure it out what I am missing |
@BOUKARY Hi, Did you solve this problem with above mention interpretation script? |
with arguments or without argumenst I am getting same error During handling of the above exception, another exception occurred: Traceback (most recent call last): |
@ThomasBomjan , you need to update your develop branch. The problem was fixed recently. |
@ThomasBomjan , it seems the problem can be reproduced. As a workaround for now you can create |
I build docker-compose again and run the script. Still I am having same issues. |
I think there is a problem with python libraries, I get this error with python3.7 and get other error with python3.5. Should we create a virtualenv? |
@peyman-sabouri what were your errors? |
python2: cvat/utils/auto_annotation/../../cvat/init.py", line 6, in python3: |
I created key/secret_key.py and included: import os now I am getting this error:
File "/cvat/utils/auto_annotation/../../cvat/apps/auto_annotation/inference_engine.py", line 5, in |
I solved my problem: copied run_model.py to cvat/apps/auto_annotation/run_model.py docker exec -it cvat bash -ic 'python3 ~/cvat/apps/auto_annotation/run_model.py --py t1.py --xml yolov3.xml --bin yolov3.bin --json label_map.json' |
Hi @ThomasBomjan, sorry for the late reply. Nop, i didn't have time to check the last version of CVAT. I had a different error: Import failed error. Not like yours |
Hi @BOUKARY did you manage to get a interp.py working after this, or did you stay with a manual upload? |
I did it manually to train my model, now i m testing. But i will definitely need this option in the future. I m planning to train a new model for pedestrian counting. The auto annotation will definitely accelerate the labeling process |
Hi All, Hi @nmanovic,
I want to run my custom yolov3 models in auto annotation mode in CVAT
So, I converted my model to IR format with OpenVINO, now I m trying to submit the 4 necessary files (.xml, .bin, .json and interpret.py) to the server. but I have some issues with the interpretation script .py:
Test Failed : import not found
Does any one have any idea how to solve this ?
does anyone have an interpretation script for yolov3-tiny (1 classe) ?
The text was updated successfully, but these errors were encountered: