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
When running yolov4.py I received an error:
File "mypath", line 31, in <module> label = "%s : %f" % (class_name[classid[0]], score) ~~~~~~~^^^ IndexError: invalid index to scalar variable.
I believe it is related to line 31 in yolov4.py:
label = "%s : %f" % (class_name[classid[0]], score)
classid is indexed to get a value to pass to the class_name matrix, however classid is a scalar. I believe I corrected this by changing line 31 to:
classid
class_name
label = "%s : %f" % (class_name[classid], score)
Please let me know if this is correct from your understanding or if I set something up wrong for this error to occur.
The text was updated successfully, but these errors were encountered:
You can delete index and it work for me: label = "%s : %f" % (class_name[classid], score)
Sorry, something went wrong.
I just encountered this issue as well, I put in a pull request to fix this in the main repo
#4
No branches or pull requests
When running yolov4.py I received an error:
I believe it is related to line 31 in yolov4.py:
classid
is indexed to get a value to pass to theclass_name
matrix, howeverclassid
is a scalar. I believe I corrected this by changing line 31 to:label = "%s : %f" % (class_name[classid], score)
Please let me know if this is correct from your understanding or if I set something up wrong for this error to occur.
The text was updated successfully, but these errors were encountered: