BasicSR
BasicSR copied to clipboard
Does not understand gt_size parameter
Does the gt_size parameter in BasicSR mean that the ground turth crop should be this size or resize
if I have the size of ground truth is 320x320,gt_size is 128,the ground truth will be crop or resize?
GT will be cropped to 128
from : https://github.com/XPixelGroup/BasicSR/blob/master/docs/DatasetPreparation.md
Crop to sub-images: DIV2K has 2K resolution (e.g., 2048 × 1080) images but the training patches are usually small (e.g., 128x128 or 192x192). So there is a waste if reading the whole image but only using a very small part of it. In order to accelerate the IO speed during training, we crop the 2K resolution images to sub-images (here, we crop to 480x480 sub-images). Note that the size of sub-images is different from the training patch size (gt_size) defined in the config file. Specifically, the cropped sub-images with 480x480 are stored. The dataloader will further randomly crop the sub-images to GT_size x GT_size patches for training. Run the script extract_subimages.py: