PyTorch-CycleGAN
PyTorch-CycleGAN copied to clipboard
Minor fixes
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 makingtarget_realandtarget_faketensors. - Method to start Visdom is now updated
@aitorzip
Thank you @tanvach ! Your patch also does the job on my setup.