Open Scienceseb opened 5 years ago
@Scienceseb Hi, can you explain the role of this perceptual loss in your training ?, you use it to improve the generators ?
It still uses GPU for training. However, since you call vgg = VGGNet().cuda().eval() in the backward function, it takes a long time for initialization each time. Try put this in the initialization function.
@Scienceseb Hi, can you explain the role of this perceptual loss in your training ?, you use it to improve the generators ?
Perceptual loss make the resulting images sharper.
@Scienceseb Hi, can you explain the role of this perceptual loss in your training ?, you use it to improve the generators ?
Perceptual loss make the resulting images sharper.
Excuse me,what is the effect of adding perceptual loss
@Scienceseb Hi, can you explain the role of this perceptual loss in your training ?, you use it to improve the generators ?
Perceptual loss make the resulting images sharper.
how is it?
If I want save this perceptual loss to the log_loss.txt,and visualization it, where I need to change.
very thanks
Problem: model always switch from GPU to CPU
Modifications done for adding the perceptual loss: So if you want to use perceptual loss while using this amazing CycleGAN do the following: In models.cycle_gan_model.py: add at the beginning:
and in backward_G(self):
and finally:
You now have a perceptual cycle gan, congratulation!
But with those modifications the model always switch from GPU to CPU why?