Zheng222 / IMDN

Lightweight Image Super-Resolution with Information Multi-distillation Network (ACM MM 2019, Winner Award of ICCVW AIM 2019 Constrained SR Track1&Track2)
418 stars 69 forks source link

adaptive cropping #22

Open nanmehta opened 3 years ago

nanmehta commented 3 years ago

thanks for the wonderful concept. can u please let me know exactly where in the code is this strategy of adaptive cropping

Zheng222 commented 3 years ago

@nan-rock https://github.com/Zheng222/IMDN/blob/f1170cfb51f86f25f68bafa80fce04b2470f48ed/test_IMDN_AS.py#L30-L60

nanmehta commented 3 years ago

thanks for the quick response. i just wanted to ask as you mentioned in issue #9 regarding adaptive cropping tha it allows us to output exactly the same size as the target size. But does it make a difference in the overall result. As in the example you gave the output using this strategy is (2801x 2001) instead of 2800 X2000. But even we ignore 1 pixel from the boundary it wont make much difference

EvelyneCalista commented 2 years ago

Hello, may I ask if I would like to use ACS, shall I modify the train code with the _cropforward too? thank you.