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

Training loss is not decreasing #5

Open
SamratSinghRathore opened this issue Jun 16, 2023 · 2 comments
Open

Training loss is not decreasing #5

SamratSinghRathore opened this issue Jun 16, 2023 · 2 comments

Comments

@SamratSinghRathore
Copy link

SamratSinghRathore commented Jun 16, 2023

Hello, I am using Unet decoder and HRNet encoder model but i realize that the training loss is not decreasing, instead it seems to remain the same. Also the training logs appear in separate lines which is a problem becuase 1 epoch take around 200 lines and not gets output in one line.
Screenshot from 2023-06-16 19-27-31

I have trained it for 10 epochs but the loss keeps jumping between 0.99 and 1

@mberkay0
Copy link
Owner

Greetings @SamratSinghRathore,
The divergence/non-convergence of a model may depend on more than one situation. I recommend trying different parameters and different encoders. You may also consider freezing specific layers of the encoder. Another option is to freeze the entire encoder and train only the decoder.
In addition, please ensure to pre-process your data according to the backbone network model you have chosen.
Best regards.

Note: The separate line verbose is due to the 'tqdm' library. This problem may occur in the Jupyter Notebook. I will update the 'tqdm.auto' module.
Perhaps you can use this for a quick solution:

from tqdm import tqdm

tqdm._instances.clear()

@SamratSinghRathore
Copy link
Author

SamratSinghRathore commented Jun 24, 2023 via email

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