Closed XiaoqiangZhou closed 4 years ago
This function normalizes the gt_image to [-1, 1]. It can be seen as a regular per-processing operation which ensures that the output images have similar data distribution (mean: 0 and variance: 1).
However, you can also remove this normalization operation. (remember to modify the activation function of the output layer)
excuse me , i have some questions .generate_structure_images("path to Places2 list file", "path to output folder");
what is place2 file list? Should i change place2 dataset to list ?
@zhangbaijin Yes, you need to generate a places2_paths.txt
, which includes the paths to all the places2 images. And the code will read from the file to get the paths of images
Dear researcher,
In your code, you transform both the gt_image and structure_image in the
Dataset
function. I'm a little confused why you also transform thegt_image
(i.e. Normalize)? Will this make the network learns to predict 'transformed' pixels in the corrupted region?Code implementation is in
data.py
Could you explain the reason why you do such tranformation to gt_image? Thanks