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

the ratio of classification loss and verification loss is 1/2 #4

Closed
JoyLuo opened this issue Apr 21, 2017 · 4 comments
Closed

the ratio of classification loss and verification loss is 1/2 #4

JoyLuo opened this issue Apr 21, 2017 · 4 comments

Comments

@JoyLuo
Copy link
Contributor

JoyLuo commented Apr 21, 2017

dear @layumi
when i train the siamese net, the loss of verification shakes widly. and it is down in a very difficult way to understand.
(1)how about you view of the change(down) of the verification loss
(2)do you have tune the net in other ratio of the two loss, and could you tell me the result
and this is the fig of classification loss and verification loss
clsloss
difloss
and thanks for you kindly

@layumi
Copy link
Owner

layumi commented Apr 23, 2017

@JoyLuo
Hi Joy,
Sorry for the late response.

  1. The 'shake' of the verification loss may be due to the (x-y)^2 in the Square layer.
    I have tried to add L2-norm Layer but it seems to harm the training process and loss some information. I did not try adding the BatchNorm, and I think it may work.

  2. Actually I have tried classification:verification = 1:0.1,1:0.01 and the result is similar or no better than 1:1. So I do not try more variants.

Thank you!
Zhedong

@JoyLuo
Copy link
Contributor Author

JoyLuo commented Apr 24, 2017

@layumi thanks for you kindly answer.
could you show me the figure of loss_dif your trained? it will tell me the right way about how to down the loss_dif.

thank you!
luoze

@layumi
Copy link
Owner

layumi commented Apr 24, 2017

I just uploaded the training curve of the Market-1501. You may refer to it.
https://github.com/layumi/2016_person_re-ID/blob/master/market1501-train-curve.pdf

The top1_compare and objective_compare are for the verification loss.

@JoyLuo
Copy link
Contributor Author

JoyLuo commented Apr 25, 2017

dear @layumi
i see the curve from you link. thanks for you kindly help

@JoyLuo JoyLuo closed this as completed May 31, 2017
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