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

Loss nan #8

Open
SYuan-X opened this issue Jan 25, 2024 · 3 comments
Open

Loss nan #8

SYuan-X opened this issue Jan 25, 2024 · 3 comments

Comments

@SYuan-X
Copy link

SYuan-X commented Jan 25, 2024

Hello, I am currently training your model on my own data. However, when I trained the model, I got Loss=nan in both STN and CAE, I have tried different learning rate, but it still exists. Do you know any reasons that may cause this problem? Thank you very much!

epoch: 1534
loss: nan
lr : [5e-05]
epoch: 1535
loss: nan
lr : [5e-05]
epoch: 1536
loss: nan
lr : [5e-05]
epoch: 1537
loss: nan

@guy-erez
Copy link
Collaborator

Hi,
I highly recommend saving the STN alignment result every ~100 epochs to make sure that the STN training did not result in taking all of the images outside of the alignment frame. The loss and training scheme was developed to avoid this scenario but it still can happen in challenging scenes.

@SYuan-X
Copy link
Author

SYuan-X commented Jan 26, 2024

Thanks for your answer. My video is a continuous video shot by a moving camera, but the camera movement is relatively large and the speed is relatively fast. I am curious: Is this problem caused by the background changing too much?

@guy-erez
Copy link
Collaborator

In the paper you can find an example of a sequence demonstrating large camera movement called "continuousPan" from the Cdnet 2014 dataset. I will advise you to enable a large alignment frame if you know in advance that you are expecting a large camera movement. The rate of the change should not have any effect on the results as the model treat the sequence as an unordered set of images.

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