Portrait-Segmentation icon indicating copy to clipboard operation
Portrait-Segmentation copied to clipboard

Removing background for 480p (wide) video instead of square

Open kooler opened this issue 4 years ago • 2 comments

Hi,

It seems that all the models are currently receiving square images as the input. In order to make them work with wider ones (for example 320x240) would I need to retrain them on images of that size or is there another way to adapt them to the different size?

Thanks!

kooler avatar Nov 20 '20 10:11 kooler

You can resize the input image to square (say 320x320), feed the resized image as input to the model and finally resize the output mask to required resolution.

anilsathyan7 avatar Nov 20 '20 10:11 anilsathyan7

Ah, interesting, will give it a try.

Thanks @anilsathyan7!

kooler avatar Nov 20 '20 10:11 kooler