Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maheeeetaaa opened this issue Feb 7, 2023 · 4 comments
Open

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

maheeeetaaa opened this issue Feb 7, 2023 · 4 comments

Comments

@maheeeetaaa
Copy link

/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
Copy link
Owner

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
Copy link

akashAD98 commented Mar 3, 2023

@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

def read_class_names():

@AdrienKinart
Copy link

Same issue for me

@deshwalmahesh
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants