I've been using your library for image matting and encountered an issue. After applying the alpha matte to an RGB image, parts of the background, especially around complex areas like hair, remain visible. I tried refining the alpha matte using guided filtering, but the background is still not completely removed. I'm new in Python and image processing, so I might be doing something wrong, please guide me on how to remove or/and apply a new background on the processed photo.
I've been using your library for image matting and encountered an issue. After applying the alpha matte to an RGB image, parts of the background, especially around complex areas like hair, remain visible. I tried refining the alpha matte using guided filtering, but the background is still not completely removed. I'm new in Python and image processing, so I might be doing something wrong, please guide me on how to remove or/and apply a new background on the processed photo.
DiffMatte Result:![result](https://github.com/YihanHu-2022/DiffMatte/assets/6573695/a1f30b4a-b82c-416f-ae75-e31d803bc79a)
Extracting foreground:![final](https://github.com/YihanHu-2022/DiffMatte/assets/6573695/dc26e3a5-9e84-46a3-86a9-7924b6911c4a)
Code: