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

return (mp, mr, map50, map, *(loss.cpu() / len(dataloader)).tolist()), maps, t UnboundLocalError: local variable 'maps' referenced before assignment #14

Open
York1996OutLook opened this issue Jul 29, 2020 · 3 comments

Comments

@York1996OutLook
Copy link

No description provided.

@York1996OutLook
Copy link
Author

Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.692
Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.802
Traceback (most recent call last):
File "D:\Program Files\JetBrains\PyCharm 2020.1.2\plugins\python\helpers\pydev\pydevd.py", line 1438, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\Program Files\JetBrains\PyCharm 2020.1.2\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "E:/python/PyTorch_YOLOv4/test_half.py", line 257, in
opt.augment)
File "E:/python/PyTorch_YOLOv4/test_half.py", line 219, in test
return (mp, mr, map50, map, *(loss.cpu() / len(dataloader)).tolist()), maps, t
UnboundLocalError: local variable 'maps' referenced before assignment

@York1996OutLook
Copy link
Author

and plt.subplot(ns, ns, i + 1).imshow((imgs[i].transpose(1, 2, 0)*255).astype(np.uint8))
could be save img success

@WongKinYiu
Copy link
Owner

WongKinYiu commented Jul 29, 2020

fixed.

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