CycleGAN icon indicating copy to clipboard operation
CycleGAN copied to clipboard

a question about loading data

Open woshinierbaba opened this issue 5 years ago • 1 comments

hello,I wanna to know when you loading the data, why you operate them with x/127.5-1 other than x/255?

woshinierbaba avatar Aug 15 '18 07:08 woshinierbaba

We want to make sure that the data is [-1, 1] (with mean=0). Also, the generator's last layer is TanH, whose range is also [-1, 1]. You can also do x/255 but you need to use Sigmoid ([0, 1]) for the generator's last layer.

junyanz avatar Aug 21 '18 04:08 junyanz