imgly/background-removal-js

Output image is shrinked to 1024px.

pronode opened this issue ยท 7 comments

Hello! Is it possible to get higher resolutions?

No.

After revisiting this, I am curious. The output image should be high res. Just the mask resolution is just 1024 but it should be upscaled and matched, else it would be a bug.

Same problem, not sure if I can use it in production if the output size is not the same as the input! Is there any chance this could be fixed anytime soon?

The model is trained on 1024x1024 images. Therefore, the mask resolution will never be higher.

You cannot already return the mask and upscale it to the image resolution and combine it.

I could also provide a config that does that however the quality might not be as expected.

Also I am not 100% sure what is a good upscaler for the alpha mask.

There are ways to just use the matte as trimap input to another network but that is currently out of scope for this library. Also compute time will increase.

Can the model be fine tuned? For example on platforms like replicate.com? That might be helpful

Released with 1.3.0