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

RuntimeError: "upsample_nearest2d_out_frame" not implemented for 'Byte' #4

Closed
SysDevHayes opened this issue Mar 25, 2021 · 2 comments
Closed

Comments

@SysDevHayes
Copy link

Hi @yucornetto,

Thank you so much for this awesome work. I try training the model with a very small dataset and ran the infer.py. However, I got this error straight away RuntimeError: "upsample_nearest2d_out_frame" not implemented for 'Byte'
It seemed to be from

util.py in get_unknown_tensor_from_pred(pred, rand_width, train_mode) 244 weight = torch.from_numpy(weight).cuda() 245 --> 246 weight = F.interpolate(weight, size=(H,W), mode='nearest')

Can you please give me a small guide on how to fix it? Thank you so much!

@SysDevHayes
Copy link
Author

Fixed by casting the tensor. Sorry for a stupid question.

@yucornetto
Copy link
Owner

Good to know your problem has been solved! Feel free to let me know if you encounter any other problem :)

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