Replies: 5 comments 8 replies
-
One thing to consider is rather than using a hard cut on depth. We could use the rembg repo, https://github.com/danielgatis/rembg . it can sometimes help the depth information. Current depth calculation background removal before depth calculation Reapplying the mask after depth calculation. It can be really useful for making layered 3d scenes. I did start are extension for rembg (I haven't fully finished testing it although it might work for you). Initially I was interested in the clothing segmentation so that's why it isn't called rembg. I could probably put together a pull request in the next few days if it's of interest? |
Beta Was this translation helpful? Give feedback.
-
The next version has options to clip and expand depth range with near and far sliders, set them equal to get a b&w cut mask .. The near and far clipping works on the 16 bit depth map and gives you 1000 steps on each slider to select the threshold. Of course it's a bit cumbersome finding the threshold to cut at (0.8 is a good start) by regenerating the map constantly .. |
Beta Was this translation helpful? Give feedback.
-
Is the clip option adequate to generate the b&w masks, create clean cut backgrounds ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Those look like pretty good masks ... Might benefit from a slight post blur maybe ? I will also merge the PR by @graemeniedermayer to include the rembg asap .. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly thank you so much for fixing the depth map issue I was going out of my mind trying so many fixes.
This is the feature I refer to https://github.com/Extraltodeus/depthmap2mask
Its a great feature to use to create clean cut backgrounds
Beta Was this translation helpful? Give feedback.
All reactions