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

[BUG] Color in the Image is lost or gets changed #269

Closed
ASH1998 opened this issue Jul 20, 2022 · 1 comment
Closed

[BUG] Color in the Image is lost or gets changed #269

ASH1998 opened this issue Jul 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ASH1998
Copy link

ASH1998 commented Jul 20, 2022

Describe the bug
Color in the Image is lost or gets changed after after removing background with u2net.
The output for the color is not the same as the original image. Please check the images provided.

So my question is what sort of pre/post processing is done to make the output as such, and is there a way to get output close to original image.

To Reproduce
Steps to reproduce the behavior:

  1. Use u2net base model on the original image
  2. Verify the colors of output

Expected behavior
The image should look the same.

Images
Original Image
436b78405d18204ac4825c991ddc9525f2e1557897d3285ef5c22d86

BG Removed Image
a67c5cb292222ac5414944f9ab613eaba848762caa89445a70dc2f1d

OS Version:
Linux 20.04

Rembg version:
v2.0.21

@ASH1998 ASH1998 added the bug Something isn't working label Jul 20, 2022
@danielgatis
Copy link
Owner

This issue is related to the model.
You must train a model with your images to get a better result.
The default model is a general one... so it can get some odd results.

#193 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants