DASR icon indicating copy to clipboard operation
DASR copied to clipboard

a question about train

Open Salmashi opened this issue 3 years ago • 3 comments

The resolution of images in DF2K is relatively high. May I ask if you need to crop to a certain resolution before training?

Salmashi avatar May 26 '21 12:05 Salmashi

Hi @Salmashi, thanks for your interest in our work. We do not need to crop the HR images before training. Patches will be cropped online in the dataloader (https://github.com/LongguangWang/DASR/blob/main/data/multiscalesrdata.py#L157)

LongguangWang avatar May 28 '21 02:05 LongguangWang

Hi @LongguangWang ,why did you extract two patches from each image?

jiahong-fu avatar Sep 06 '21 13:09 jiahong-fu

Hi @jiahong-fu, we extract two patches from one image to construct positive pairs (with the same degradation) for contrastive learning, as illustrated in Fig. 1.

LongguangWang avatar Sep 06 '21 14:09 LongguangWang