HimanchalChandra / Object-Detection-with-Voice-Feedback-YOLO-v3-and-gTTS

Convert the predicted annotated text into voice responses
24 stars 15 forks source link

I get error #1

Closed Muhammed1244 closed 2 years ago

Muhammed1244 commented 3 years ago

I get this error:

usage: script.py [-h] -i IMAGE -y YOLO [-c CONFIDENCE] [-t THRESHOLD]
script.py: error: the following arguments are required: -i/--image, -y/--yolo
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

How can I solve?

HimanchalChandra commented 3 years ago

It is asking for input image path and Yolo weights path. You need to download the weights first (check note in readme file).

For example if I had input image in images folder and yolo weights in yolov3 folder then the run script would be: python script.py --image images --yolo yolov3

MrAdithya21 commented 2 years ago

I got this error:

(H, W) = input_image.shape[:2] AttributeError: 'NoneType' object has no attribute 'shape'

HimanchalChandra commented 2 years ago

@MrAdithya21 make sure you are passing image correctly