Closed swoook closed 3 years ago
Hi! First of all, thanks for sharing your great work on salient object detection!
I'd like to ask about skimage.transform.resize in \${REPO_ROOT}/CSNet/test.py.
skimage.transform.resize
In the code, it passes 'reflect' to mode for skimage.transform.resize.
'reflect'
mode
img = resize(img, (cfg.TEST.IMAGE_H, cfg.TEST.IMAGE_W), mode='reflect', anti_aliasing=False)
And I found it means:
Pads with the reflection of the vector mirrored on the first and last values of the vector along each axis.
Is there any reason you choose 'reflect' rather than others like 'empty'?
'empty'
Actually, I usually handle object detectors and the most repos I've seen just zero-pad to keep aspect ratios.
Have you experienced a performance gap between 'reflect' and others like 'empty'?
Hi! First of all, thanks for sharing your great work on salient object detection!
I'd like to ask about
skimage.transform.resize
in \${REPO_ROOT}/CSNet/test.py.In the code, it passes
'reflect'
tomode
forskimage.transform.resize
.And I found it means:
Is there any reason you choose
'reflect'
rather than others like'empty'
?Actually, I usually handle object detectors and the most repos I've seen just zero-pad to keep aspect ratios.
Have you experienced a performance gap between
'reflect'
and others like'empty'
?