yolov7-deepsort-tracking icon indicating copy to clipboard operation
yolov7-deepsort-tracking copied to clipboard

list index out of range for a costume trained yolo7 weight

Open maheeeetaaa opened this issue 2 years ago • 4 comments

/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

maheeeetaaa avatar Feb 07 '23 17:02 maheeeetaaa

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.

deshwalmahesh avatar Feb 09 '23 06:02 deshwalmahesh

@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

akashAD98 avatar Mar 03 '23 12:03 akashAD98

Same issue for me

AdrienKinart avatar Jun 05 '23 17:06 AdrienKinart

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

deshwalmahesh avatar Jun 09 '23 09:06 deshwalmahesh