stop image resizing by the default predictor during testing/ inference #4588
aymanaboghonim
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Which piece of code do you refer to as when you say 'default predictor'? Usually this part is done by However - models do have the expectations on the size of the input and keep the input cropped/padded to the expected size. I am not sure about how other models handle it, but in rcnn there is an always-called In case you pass an input that is larger - this will not pad but crop. See:
However I feel this is an unwanted behaviour, and I would rather get an exception from it as this is silently cropping my input image. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I want to know how to stop the image resizing process that is happened automatically by the default predictor on the input image during run inference.
I want to stop this preprocess because it may result in information loss (missing some objects) when using larger images than the model was trained on.
I tried to overwrite the config but it failed
cfg.INPUT.MIN_SIZE_TEST = 0
I also edited the cnfig yaml file to set min size of input = 0 but no effect also.
Beta Was this translation helpful? Give feedback.
All reactions