img2img-turbo icon indicating copy to clipboard operation
img2img-turbo copied to clipboard

output images scaled to [-1,1] or [0,1] ?

Open starrywintersky opened this issue 10 months ago • 2 comments

(in your code of class PairedDataset)

output images scaled to -1,1

  output_t = self.T(output_img)
  output_t = F.to_tensor(output_t)
  output_t = F.normalize(output_t, mean=[0.5], std=[0.5])

starrywintersky avatar Apr 07 '24 08:04 starrywintersky

Hi,

The input images are scaled to [0,1] and output images are scaled to [-1,1]. See this code block here.

GaParmar avatar Apr 10 '24 13:04 GaParmar

Hi,

The input images are scaled to [0,1] and output images are scaled to [-1,1]. See this code block here.

hi, i wonder know why input images are scaled to [0,1] ? why not to [-1,1] as same as antoencoder's input.