deshwalmahesh / yolov7-deepsort-tracking

Modular and ready to deploy code to detect and track videos using YOLO-v7 and DeepSORT
158 stars 65 forks source link

list index out of range for a costume trained yolo7 weight #22

Open maheeeetaaa opened 1 year ago

maheeeetaaa commented 1 year ago

/content/yolov7-deepsort-tracking/utils/google_utils.py in attempt_download(file, repo) 28 except: # fallback plan 29 assets = ['yolov7.pt'] ---> 30 tag = subprocess.check_output('git tag', shell=True).decode().split()[-1] 31 32 name = file.name

IndexError: list index out of range

I am having an issue finding where the error comes from! I thought this issue was because of the YAML file and the classes that are different but I changed coco's YAML and nothing changed please help

deshwalmahesh commented 1 year ago

Have you changed anything in the default given files?

If you have a custom trained model, you can run the original code repo as it is for just once and then just replace the weights of your model later as shown in the Notebook demo.

akashAD98 commented 1 year ago

@deshwalmaheshobject detection its working fine, but for tracking its not working, im not able to get names of my custom model, i replaced names ,still its using same coco.names also changed names from data/coco.names still its same https://github.com/deshwalmahesh/yolov7-deepsort-tracking/blob/e82d2560370dece0ce98a337532b280b7f27b51d/tracking_helpers.py#L243

AdrienKinart commented 1 year ago

Same issue for me

deshwalmahesh commented 1 year ago

@akashAD98 @AdrienKinart It's getting the names from a different file. Might be the indexing issue. Need to check with coco names file