plemeri / transparent-background

This is a background removing tool powered by InSPyReNet (ACCV 2022)
MIT License
791 stars 87 forks source link

how to use SPyReNet_Res2Net50 with size 384 X 384 and mode nightly-base? #54

Closed mikebilly closed 8 months ago

mikebilly commented 9 months ago

please provide example code how to use models from here: https://github.com/plemeri/InSPyReNet/blob/main/docs/model_zoo.md

for example, how to use the first custom model:

Backbone Train DB Config Res2Net50 DUTS-TR InSPyReNet_Res2Net50

plemeri commented 9 months ago

mode nightly-base is specifically for the fast model release which I just added somewhat randomly. Currently, models with Res2Net backbone is not supported since the model architecture is hard coded to the SwinB models. If you are advanced user, you'll know the drill. Otherwise, please use https://github.com/plemeri/InSPyReNet/blob/main/run/Inference.py which is technically identical to this package.

mikebilly commented 9 months ago

so what mode produces the best quality?

plemeri commented 8 months ago

It depends. Mostly, just use base option which you do not need to specify.