-
Notifications
You must be signed in to change notification settings - Fork 20
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
loss starts out with 0.000 #1
Comments
what's your loss function and net structure? pls provide more details or code. |
Hello, I did not change the loss function or the net structure. I used My output is:
|
Well, it's my mistake. Actually the MultiLabelMarginLoss is a sample-based loss rather than batch-based. Hence the Furthermore, you can change output format '%.3f' to '%f' to verify the loss value. |
I made the changes you suggested, as can be seen here: https://github.com/philippHRO/Customized-DataLoader/blob/master/multi_label_classifier.py It's still showing zero loss. |
Hey I got it to work. I switched to MSELoss and converted the labels to TorchFloat tensor. |
Hello, I'm a beginner with python/pytorch. I just reconfigured the Customized-DataLoader for my data. I created test_img.txt, test_label.txt, ... and ran it. my data has only 2 classes.
The Loss starts out with 0.000. Is there something wrong? Do you have any idea, what can cause this?
Thanks, for any help.
The text was updated successfully, but these errors were encountered: