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

Issue with using W & B #275

Open
JedSolo opened this issue Aug 30, 2022 · 1 comment
Open

Issue with using W & B #275

JedSolo opened this issue Aug 30, 2022 · 1 comment

Comments

@JedSolo
Copy link

JedSolo commented Aug 30, 2022

File "tune.py", line 336, in train
results, maps, times = test.test(opt.data,
File "/srv/beegfs02/scratch/aegis_guardian/data/Timothy/Solomon/yolor_pytorch/yolor/test.py", line 163, in test
box_data = [{"position": {"minX": xyxy[0], "minY": xyxy[1], "maxX": xyxy[2], "maxY": xyxy[3]},
File "/srv/beegfs02/scratch/aegis_guardian/data/Timothy/Solomon/yolor_pytorch/yolor/test.py", line 165, in
"box_caption": "%s %.3f" % (names[cls], conf),
TypeError: list indices must be integers or slices, not float

@ChenxMa
Copy link

ChenxMa commented Jan 30, 2024

Try to modify "box_caption": "%s %.3f" % (names[cls], conf)", in "test.py" to "box_caption": "%s %.3f" % (names[int(cls)], conf)"

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

2 participants