Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine-tuning MODNet on a custom dataset using SOC #206

Open
TatianaSnauwaert opened this issue Jan 25, 2023 · 1 comment
Open

Fine-tuning MODNet on a custom dataset using SOC #206

TatianaSnauwaert opened this issue Jan 25, 2023 · 1 comment

Comments

@TatianaSnauwaert
Copy link

Hi @ZHKKKe !

Thank you for sharing this model with us.
I am trying to fine-tune the trained model using the SOC adaptation iteration on a dataset of people shot on the green screen background (180k images). I ran it for 15 epochs (batch size = 1, lr = 0.00001), the loss went down from 0.0047 to 0.0017 but visually I don't see any improvement so far.

Screenshot from 2023-01-25 11-29-34

Here on the left - your trained model, on the right - fine-tuned on our dataset.

I'm trying to get rid of this green edge. Is there any parameter I should adjust to achieve it? Do you think training the model from scratch on our dataset will help improve the performance?

Any thoughts would be helpful! Let me know of you need any further details from me.
Thank you in advance for your time!
Best regards,
Tatiana

@ZHKKKe
Copy link
Owner

ZHKKKe commented Jan 31, 2023

SOC is designed to fix relatively large matting errors (e.g. missing hands/ears), and it is difficult to improve boundary details.

Calculating Foreground Color can erase the green colors on the boundaries. To calculate Foreground Color, you may use Foreground Estimation Functions from https://github.com/pymatting/pymatting .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants