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

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

How to run , pass prameters #2

Closed harishkondepati closed 2 years ago

harishkondepati commented 2 years ago

ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required=True, help="path to input image") ap.add_argument("-y", "--yolo", required=True, help="base path to YOLO directory") ap.add_argument("-c", "--confidence", type=float, default=0.5, help="minimum probability to filter weak detections") ap.add_argument("-t", "--threshold", type=float, default=0.3, help="threshold when applyong non-maxima suppression") args = vars(ap.parse_args())

HimanchalChandra commented 2 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 the images folder and Yolo weights in the yolov3 folder then the run script would be: python script.py --image images --yolo yolov3

harishkondepati commented 2 years ago

Im Getting Error While running your script.py

ERROR : PS D:\PythonProjrects\yolo> python script.py --image images --yolo yolov3 Traceback (most recent call last): FileNotFoundError: [Errno 2] No such file or directory: 'yolov3\yolo/coco.names' File "D:\PythonProjrects\yolo\script.py", line 22, in LABELS = open(labelsPath).read().strip().split("\n") FileNotFoundError: [Errno 2] No such file or directory: 'yolov3\coco.names'

please help me to run this script ,it's a humble request find the below attachment..please

On Sat, Mar 19, 2022, 12:38 PM Himanchal Chandra @.***> wrote:

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 the images folder and Yolo weights in the yolov3 folder then the run script would be: python script.py --image images --yolo yolov3

— Reply to this email directly, view it on GitHub https://github.com/HimanchalChandra/Object-Detection-with-Voice-Feedback-YOLO-v3-and-gTTS/issues/2#issuecomment-1072957683, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUSGK7AU5BZZ2TCSEM4NP3VAV4OVANCNFSM5Q656BQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: <HimanchalChandra/Object-Detection-with-Voice-Feedback-YOLO-v3-and-gTTS/issues/2/1072957683 @github.com>

HimanchalChandra commented 2 years ago

Do you have coco.names file in yolov3 folder?

harishkondepati commented 2 years ago

In my screenshot you can see my project structure.. All the files are in root folder..

According to that can you suggest plz..

On Sat, Mar 19, 2022, 2:19 PM Himanchal Chandra @.***> wrote:

Do you have coco.names file in yolov3 folder?

— Reply to this email directly, view it on GitHub https://github.com/HimanchalChandra/Object-Detection-with-Voice-Feedback-YOLO-v3-and-gTTS/issues/2#issuecomment-1072971020, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKUSGK7EMHSZW6U52B3XSMDVAWIKHANCNFSM5Q656BQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: <HimanchalChandra/Object-Detection-with-Voice-Feedback-YOLO-v3-and-gTTS/issues/2/1072971020 @github.com>

HimanchalChandra commented 2 years ago

Create 2 folders inside yolo, images, and yolov3. Keep the weights in yolov3 and test image in images, then run the script.