theAIGuysCode / Object-Detection-API

Yolov3 Object Detection implemented as APIs, using TensorFlow and Flask
Apache License 2.0
339 stars 179 forks source link

DuplicateFlagError: The flag 'classes' is defined twice. First from /usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py, Second from /usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py. Description from first occurrence: path to classes file #14

Open Samar-080301 opened 4 years ago

Samar-080301 commented 4 years ago

I was running this application in colab. When I ran the load_weights.py file, it showed FATAL Flags parsing error: Unknown command line flag 'f'. But the code ran, so I moved forward and ran the detect_video.py with my weights file as /content/yolov3.weights and classes file as /content/Object-Detection-API/data/labels/coco.names. It showed DuplicateFlagError: The flag 'classes' is defined twice. First from /usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py, Second from /usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py. Description from the first occurrence: path to classes file My colab notebook :- https://colab.research.google.com/drive/1bESeiPhNPbRGO7xWDK0X6uzlo3gu6p3C#scrollTo=mGWhScK0jAeQ