Open prash-p opened 6 years ago
Seems like torch doesn't like ndarrays, and expects torch tensors. Correct usage is:
plot_image_grid([imgs['HR_np'],
out_HR_noprior_np,
out_HR_TV_np,
out_HR_deep_np], factor=8, nrow=2, interpolation='lanczos');
Where out_X_np = np.clip(var_to_np(net(net_input)), 0, 1)
after each loss experiment in the notebook
For me the very last line of the sr_prior_effect notebook fails, but I'm not sure why. It gives an incorrect type error even through they are the same type (I think...)