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

Traing issue:“torch.autograd.set_detect_anomaly(True)” #43

Open
Luke-Huang-Github opened this issue May 17, 2024 · 1 comment
Open

Comments

@Luke-Huang-Github
Copy link

Environment: GPU: single RTX4090,
Dataset: T1 <-> T2 in IXI dataset
Number of images: 2674 pairs
In "train.py" file, when I deleted this line of code:“torch.autograd.set_detect_anomaly(True)” , the speed of training one eopch is faster , but the result of psnr and ssim get worse sometimes.
Time consumption in one epoch: [original: about 1.5hour ; deleted the code: about 36 minutes]
PSNR: [original: 29.5 ; deleted the code: 25.5]

Could you please tell me how to solve this problem?

@icecreamlovepudding
Copy link

I meet the same question ,the training speed is so slow.
Training 500 pairs of images, need 7days for only 50epoch,do you know how to solve this question?
Thank you !

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