We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I run the command python3 detect.py --source image.jpg --weights runs/train/exp5/last.pt
python3 detect.py --source image.jpg --weights runs/train/exp5/last.pt
The problem is that I mismatch some name of the classes and I have to change it, but seems impossible.
How can I change it?? I need it asap, that I have to submit my thesis :)
I try already changing the array in the .yaml file but no success :(
The text was updated successfully, but these errors were encountered:
Just solve in a hard way, I don't know if there are smoother solutions
Actually here
yolov5/detect.py
Line 59 in 095197b
You have to modify in the following way
names = ["myfirstclass","my second class",..,"last class"]
Hope it help and if there are better solution, just let me know
Sorry, something went wrong.
I had the same question, but I solved in a similar way like this: After loading the model:
Line 56 in 095197b
model.names[0] = 'first_class' model.names[1] = 'second_class' model.names[2] = 'third_class'
No branches or pull requests
❔Question
I run the command
python3 detect.py --source image.jpg --weights runs/train/exp5/last.pt
The problem is that I mismatch some name of the classes and I have to change it, but seems impossible.
How can I change it??
I need it asap, that I have to submit my thesis :)
Additional context
I try already changing the array in the .yaml file but no success :(
The text was updated successfully, but these errors were encountered: