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

about resume trainning #40

Closed
sxd0071 opened this issue Mar 18, 2019 · 1 comment
Closed

about resume trainning #40

sxd0071 opened this issue Mar 18, 2019 · 1 comment

Comments

@sxd0071
Copy link

sxd0071 commented Mar 18, 2019

Hi,sorry to bother you. I have some problems about the Resuming training. Firstly, My training stopped unexpectedly with a setence of 'EOFError: Ran out of input'. I don't know why. Secondly, I want to resume training. I try the setting' --load RCAN_BIX2_G10R20P48 --resume -1 --n_GPUs 2' , i got an error as the followings show:

Preparing loss function:
1.000 * L1
Traceback (most recent call last):
File "/home/img/Desktop/sxd/RCAN/RCAN_TrainCode/code/main.py", line 16, in
loss = loss.Loss(args, checkpoint) if not args.test_only else None
File "/home/img/Desktop/sxd/RCAN/RCAN_TrainCode/code/loss/init.py", line 67, in init
if args.load != '.': self.load(ckp.dir, cpu=args.cpu)
File "/home/img/Desktop/sxd/RCAN/RCAN_TrainCode/code/loss/init.py", line 140, in load
for l in self.loss_module:
TypeError: 'DataParallel' object is not iterable

Process finished with exit code 1

@yulunzhang
Copy link
Owner

Hi,
The bug has been fixed. Please update RCAN/RCAN_TrainCode/code/loss/init.py
Thanks @MaFuyan

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