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 error encountered when executing train.py #27

Open
ZC-peng opened this issue Jul 28, 2024 · 1 comment
Open

The error encountered when executing train.py #27

ZC-peng opened this issue Jul 28, 2024 · 1 comment

Comments

@ZC-peng
Copy link

ZC-peng commented Jul 28, 2024

Hello, I encountered the following console prompt when executing train.py. I suspect it may be caused by a version conflict. I have installed the latest versions of PyTorch and CUDA according to your requirements in the readme. I would like to confirm the specific versions you are using. (I can obtain training results, but after testing, the generated training results are incorrect. When I replace the training results with the ckpt you provided, the test results are normal. So I suspect the error is caused by this prompt.)

console prompt:Detected call of lr_scheduler.step() before optimizer.step(). In PyTorch 1.1.0 and later, you should call them in the opposite order: optimizer.step() before lr_scheduler.step(). Failure to do this will result in PyTorch skipping the first value of the learning rate schedule.

@htcr
Copy link
Owner

htcr commented Aug 8, 2024

Hi @ZC-peng , this codebase is intended to use the latest version of pytorch. The network architecture is quite simple and standard so it's unlikely to have weird dependencies or compatibility issues.

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