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

Does yolo differentiate between classes based on shape or color? #783

Open
nidhimittalhada opened this issue May 31, 2018 · 1 comment
Open

Comments

@nidhimittalhada
Copy link

Hi all,

This is a fundamental question i am struggling to find answer of everywhere.

I was asked to solve a computer vision problem of detecting a type of carton box in the image.
if its a white box or a brown box.. when boxes have same shape. I had two classes whitebox, brownbox.

I tried yolov1 with tiny version on this problem. I trained my model on 1500 approx images for each class. My model's loss reduced to 0.04 when i stopped training.

Now, inference on test image is very bad.
It mostly detecting wrong class. To white box it mostly says a brownbox.
Though bounding box predicted coordinates looks to be correct, but class prediction on test images is too bad.

I am really confused when training loss went upto 0.04 how can model predict wrong class almost on every image which i test on.

This is my config settings
[detection]
classes=2
coords=4
rescore=1
side=7
num=2
softmax=0
sqrt=1
jitter=.2
object_scale=1
noobject_scale=.5
class_scale=1
coord_scale=5

I am thinking class_scale is 1 should i increase it to train so that class prediction comes out to be correct ?

OR IS there fundamental mistake in my concept ? can yolo understand difference between two objects of same shape but different color?

Any kind of help in this regard, any kind of help from your experience will be reallllly very much appreciated ..

@Kiwi97
Copy link

Kiwi97 commented May 23, 2021

pjreddie/darknet#1413 (comment) answer

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