About image repeat processing

#12
by ruibin001 - opened

I find one question: one image after removed background by Birefnet, if removed background again by it, the edge of object will generate black line.
like this:

1.png

675abc09e3ff61282.png

Do you have any good ways to solve this problem?

That makes sense: you extract the target with an object of which the mask values are from 0 (0% target) to 1 (100% target). By default, the background color changes to 0 (black). Therefore, if you do a second processing, the black pixels might be included in the second result.
BTW, did you add the post-processing for refinement?

That makes sense: you extract the target with an object of which the mask values are from 0 (0% target) to 1 (100% target). By default, the background color changes to 0 (black). Therefore, if you do a second processing, the black pixels might be included in the second result.
BTW, did you add the post-processing for refinement?

After referencing your code, this issue has been resolved. Thank you very much! πŸ˜„

ruibin001 changed discussion status to closed

Sign up or log in to comment