CAR icon indicating copy to clipboard operation
CAR copied to clipboard

Downscaled Images are black

Open BenjaminGemperle opened this issue 4 years ago • 4 comments

I managed to get the provided models running, however when I run it the downscaled pictures are just black and therefore so are the upscaled pictures. The pictures have the correct amount of pixels and the ratio is correct. Does anyone know what might cause this issue?

BenjaminGemperle avatar May 27 '21 13:05 BenjaminGemperle

Please check the value of pixels.The default setting is 0~255(rgb range).

vardenppp avatar May 28 '21 01:05 vardenppp

Please check the value of pixels.The default setting is 0~255(rgb range).

Can you tell me how to check this properly? And, if so, could this be included in the README?

I'm considering a variety of issues, and I'd like to rule out this option as quickly as possible.

RobinDeBock avatar Dec 24 '21 15:12 RobinDeBock

I get the exact same result with you. All down sampled image pixels are 0. I think issue is in the adaptive grid sampler model. In the grid sampler.py file forward(img, kernels, offsets_h, offsets_v, offset_unit, padding, output) line output array always return full of 0. Is there any advice to handle that?

tprdk avatar Feb 02 '22 08:02 tprdk

I am experiencing the same issue, all output arrays from the forward method of the custom downsampler function are zero.

garrett-partenza-us avatar Jan 04 '23 03:01 garrett-partenza-us