SSL92 / hyperIQA

Source code for the CVPR'20 paper "Blindly Assess Image Quality in the Wild Guided by A Self-Adaptive Hyper Network"
MIT License
346 stars 52 forks source link

about data process #47

Open DIY-Z opened 11 months ago

DIY-Z commented 11 months ago

https://github.com/SSL92/hyperIQA/blob/685d4af6cbdfad5aa346ef2ce37f80fbfa11a89d/data_loader.py#L31-L35 https://github.com/SSL92/hyperIQA/blob/685d4af6cbdfad5aa346ef2ce37f80fbfa11a89d/folders.py#L191 From the two code snippets above, it is evident that the data is loaded as images with a size of '1024x768', with width and height dimensions of 1024 and 768 respectively. However, the Resize((512, 384)) operation rescales the dimensions to 512 and 384, resulting in a noticeable change in the aspect ratio from the original 768:1024 to 512:384. I'm curious if the same processing is applied in the experimental setup of the paper?

Plus: according to the document of pytorch Resize,the 'size' parameter of the Resize function refers to the height and width.