Fixes two small issues I came across before I could get the script to run:
Pytorch now treats true scalar (dimension [1]) differently to a singleton (dimension [1x1]). This broke the loss computation at loss_GAN_A2B = criterion_GAN(pred_fake, target_real) step. Fixed by making target_real and target_fake tensors.
Fixes two small issues I came across before I could get the script to run:
loss_GAN_A2B = criterion_GAN(pred_fake, target_real)
step. Fixed by makingtarget_real
andtarget_fake
tensors.@aitorzip