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

Problems when training #15

Open
KrystalCWT opened this issue Jan 19, 2021 · 3 comments
Open

Problems when training #15

KrystalCWT opened this issue Jan 19, 2021 · 3 comments

Comments

@KrystalCWT
Copy link

Hi, I trained M-SFANet with part of shanghaiTech samples. BUT the loss converge too slow, and the mse and mae remain large after training a few hundred epoches. Do you know why?

@Pongpisit-Thanasutives
Copy link
Owner

If you have employed the Bayesian preprocessing, the convergence could be a bit slow. Sometimes it can take up to 600-800 epochs to converge. I think you can first try the Gaussian filter with fixed std to see the performance. And also, try experimenting with look ahead optimizer like in this paper, https://arxiv.org/abs/1907.08610, to enhance convergence rate.

@phapnm
Copy link

phapnm commented Nov 10, 2021

Hi, I trained M-SFANet with part of shanghaiTech samples. BUT the loss converge too slow, and the mse and mae remain large after training a few hundred epoches. Do you know why?

How many epochs did you train? And how much MAE value you get (large)?

@Pongpisit-Thanasutives
Copy link
Owner

@phapnm
Based on my experience, using either the Bayesian preprocessing or Gaussian filter with fixed std, If training up to >700 (700-1000) epochs, the model should converge on SHA (MAE<60) and SHB (MAE<7). To train 1000 epochs, it may take 1-2 days on a single GPU.

I am planning to release the preprocessed dataset of SH and UCF-QNRF for better reproducibility.

Thanks!

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

3 participants