-
Notifications
You must be signed in to change notification settings - Fork 290
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
Unable to detect second object #105
Comments
Your custom classes seem to be background (index 0), pedestrian (index 1), bicycle (index 2). Please check the output labels to be 0, 1 or 2. |
@ijkguo It should work right? It is not happening.. |
Line 165 in dff47b8
the background class was not skipped when printing the evaluation results, thus background was referring to the next class. In your case, 0.5177 is AP for pedestrian and 0.2642 is AP for bicycle. I made a fix here: 612d7c9. Thanks for reporting it: nothing was wrong with your training. |
I had thought the same.. |
OK so it is a different problem now. Based on #95, you have 200 images in your training set, 200 images in your testing set. I think more data is better for generalization. |
No, i have 1000 images of each class now..
but still i am not able to detect the second object.
…On Fri 3. Aug 2018 at 11:15 PM, Jian Guo ***@***.***> wrote:
OK so it is a different problem now. Based on #95
<#95>, you have 200 images in
your training set, 200 images in your testing set. I think more data is
better for generalization.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#105 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/Al2--9N3oOGrnbXzKqgR40QssFvdPCLPks5uNL1WgaJpZM4VqLzR>
.
|
Let's look at training set first before evaluating generalization ability on testing set. Can you see more than one detection in a training image? |
I have training set with sigle object in each image. So only one bounding
box per image.
But while doing inference, i have dataset of images with 2 targets in
single image..
But if i do train the network n then test them,
Both the objects are detected as Pedestrian itself.
Even if single object bicycle present sometimes,
It is also detecting as pedestrian.
…On Fri 3. Aug 2018 at 11:39 PM, Jian Guo ***@***.***> wrote:
Let's look at training set first before evaluating generalization ability
on testing set. Can you see more than one detection in a training image?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#105 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/Al2--x8NlonuCCsF7P11dhvEEyFjGliyks5uNMMogaJpZM4VqLzR>
.
|
Hi @ijkguo ,
I have trained the model with resnet18.
I have given 2 classes.
when i run test.py. After 10 epochs
I am getting something like this..
INFO:root:Writing pedestrian VOC results file
INFO:root:Writing bicycle VOC results file
INFO:root:AP for background = 0.5177
INFO:root:AP for pedestrian = 0.2642
INFO:root:Mean AP = 0.3910
Unable to detect 2nd class.
What is the problem??
There is something wrong in the train.py?
Please clarify this..
Thanks in advance.
The text was updated successfully, but these errors were encountered: