Open GuoQuanhao opened 3 years ago
By default, we first cut out the upper 1/3 part of the input image. Then we randomly resize the width of the image to 1x~1.2x of img_width
with the aspect ratio unchanged. After that, the image will be cropped to the target size of (img_height, img_width)
.
Note that the target size should be divisible by 8 since there are 3 downsampling modules in the encoder. We recommend you to check with the image size as well as the size of the label map along with the transformation step by step to figure out what the problem is.
Hope that it helps, thanks.
The prepross procedure can be concluded as follows:
a=r*target_width/raw_width
, and r is a random figure in the range 1~1.2
in our dataset, our target image size is 1024*384
(after the sky-cutting). as what you have been described, the image would be resize to 1~1.2x``512*192
, and then crop to 512*512
, but 192<512 and no padding used in our code, so the error occur.
we recommand that you keep the ratio of the height and weight of the raw image(after skt-cutting) or verify the code about transforms, for example, resize the raw image larger.
can not get the right shape, I set 512x512
I found my input size has been changed![image](https://user-images.githubusercontent.com/49911294/103076145-0f946c00-4608-11eb-8169-8adb32822c39.png)