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

why label sholud be [0 255] #8

Open
zack6514 opened this issue Sep 2, 2017 · 5 comments
Open

why label sholud be [0 255] #8

zack6514 opened this issue Sep 2, 2017 · 5 comments

Comments

@zack6514
Copy link

zack6514 commented Sep 2, 2017

I have 4 classes and assign 0 0 1 1 to it , and in train.prototxt label data not have the param scale , I think this is ok? why should be [0 255]?

@sukritshankar
Copy link
Owner

We are using data layer for labels. Data layer in Caffe automatically scales down by a factor of 255. Thats why labels should be in the scale of [0, 255], so that after scaling, you should have proper values between 0 and 1 !!

@vishalghor
Copy link

Hi @sukritshankar ,

Can you give more information on creating .mat file labels.
How to create the .mat file?
It would be helpful if you could help me for the same as i am new to caffe framework.

Thanks and Regards

@aniket03
Copy link

aniket03 commented Dec 6, 2017

@sukritshankar I believe its the code in prototxt

due to which caffe will scale down the labels by 255. Thus if we eliminate this line of code should labels of the form [0, 1] not be directly useful. Without having to scale them up by 255.

@aniket03
Copy link

aniket03 commented Jan 9, 2018

Hi, @sukritshankar any updated on above?

@iiwindii
Copy link

@aniket03 Agree! If your labels are 0 ,1, then it should work to eliminate this line.

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

5 participants