-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
mean_mAP issue #50
Comments
This is because
@glenn-jocher I'd PR this but it's a single line :) |
@nirbenz Thanks. |
@nirbenz thanks, I added this line to test.py in the latest commit! |
After running
I am using the latest commits and I get the error same as @mama110
this solution don't work. |
Do you have more than one GPU?
On Sun, 17 Feb 2019 at 03:09, dpj ***@***.***> wrote:
After running python train.py I got the error below:
WARNING Using GPU0 Only. Multi-GPU issue: #21
Using cuda:0
Image Total P R mAP
Image Total P R mAP
mAP Per Class:
/media/cieserver/209b4bc6-b4ad-4a37-b5ee-cde3c165103e/dpj/yolov3/test.py:114: RuntimeWarning: invalid value encountered in double_scalars
print('%15s: %-.4f' % (c, AP_accum[i] / AP_accum_count[i]))
head: nan
eye: nan
nose: nan
I am using the latest version and I get the error same as @mama110
<https://github.com/mama110>
mean_mAP, mean_R, mean_P = 0.0, 0.0, 0.0
this solution don't work.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#50 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZlyGdvXXoxCJ9xVpx7Ih7YHb0tSazECks5vOLndgaJpZM4ZYJM_>
.
--
Glenn Jocher
Founder and CEO, Ultralytics LLC
+1 301-237-6695
|
Yes , I have two GPU but I used |
I found a problem with my valid file. The path is wrong and I solved it. Thank you very much for your quick response. |
@pprp you can make the plots below using |
Thank you for your kind response! 😄 |
Hi @mama110, @glenn-jocher, I also encountered RuntimeWarning: invalid value encountered in double_scalars. I got the APs but the Targets, P, R, mAP, and F1 are 0 and nans. What could be the problem here? Thank you! |
@kenrubiooo Hello, thank you for your interest in our work! This is an automated response. Please note that most technical problems are due to:
sudo rm -rf yolov3 # remove exising repo
git clone https://github.com/ultralytics/yolov3 && cd yolov3 # git clone latest
python3 detect.py # verify detection
python3 train.py # verify training (a few batches only)
# CODE TO REPRODUCE YOUR ISSUE HERE
If none of these apply to you, we suggest you close this issue and raise a new one using the Bug Report template, providing screenshots and minimum viable code to reproduce your issue. Thank you! |
To clarify, I am just experiencing an error in the test.py when trying to determine the mAP. |
@kenrubiooo run this code exactly and paste your terminal output: sudo rm -rf yolov3 # remove exising repo
git clone https://github.com/ultralytics/yolov3 && cd yolov3 # git clone latest
python3 test.py # verify test |
I'm training VOC2007, afer 1 epoch, an error shows up:
F:\pytorch-yolov3-master-ul\test.py:122: RuntimeWarning: invalid value encountered in double_scalars
print('%15s: %-.4f' % (c, AP_accum[i] / AP_accum_count[i]))
aeroplane: nan
bicycle: nan
bird: nan
boat: nan
bottle: nan
bus: nan
car: nan
cat: nan
chair: nan
cow: nan
diningtable: nan
dog: nan
horse: nan
motorbike: nan
person: nan
pottedplant: nan
sheep: nan
sofa: nan
train: nan
tvmonitor: nan
Traceback (most recent call last):
File "train.py", line 268, in
var=opt.var,
File "train.py", line 224, in train
img_size=img_size,
File "F:\pytorch-yolov3-master-ul\test.py", line 125, in test
return mean_mAP, mean_R, mean_P
UnboundLocalError: local variable 'mean_mAP' referenced before assignment
What's the problem?
The text was updated successfully, but these errors were encountered: