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

Save Training Result #1

Open
HieuQN opened this issue Feb 14, 2019 · 2 comments
Open

Save Training Result #1

HieuQN opened this issue Feb 14, 2019 · 2 comments

Comments

@HieuQN
Copy link

HieuQN commented Feb 14, 2019

Amazing work.
I want to save training results during the training, but unsuccessful. Below is the codes that you commented out.
# val_images.extend(
# [display_transform()(val_hr_restore.squeeze(0)), display_transform()(hr.data.cpu().squeeze(0)),
# display_transform()(sr.data.cpu().squeeze(0))])
# val_images = torch.stack(val_images)
# val_images = torch.chunk(val_images, val_images.size(0) // 15)
# val_save_bar = tqdm(val_images, desc='[saving training results]')
# index = 1

what is val_hr_restore and sr.data.cpu()
thanks for your time.

@HieuQN
Copy link
Author

HieuQN commented Feb 14, 2019

Would you able to do a small tutorial on how to train and eval on the network? Highly appreciate it.

@ReNginx
Copy link
Owner

ReNginx commented Feb 27, 2019

Hi there. Thanks for the comment. This project was made in a hurry. So it's kind of sloppy everywhere. The commented out code actually comes from Implementation from another person's SRGAN implementation (mentioned at last of README). Those code generates and saves sample images during training. We are not using that so we just commented out. Could you give more detail about your problem? I'll try my best to help.

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