melMass / comfy_mtb

Animation oriented nodes pack for ComfyUI
MIT License
419 stars 45 forks source link

Feature request for RemBackground #164

Open kakachiex2 opened 5 months ago

kakachiex2 commented 5 months ago

Describe the problem

Your Rem background node is less precise than others more accurate version like BRIA and BiRefNet

Describe the solution you'd like

Implement others Rem-Background model like in the screenshot so we have more option with the ability to change Back. color Screenshot 2024-03-24 121904

Alternatives considered

Screenshot 2024-03-24 121904

Additional context

No response

kakachiex2 commented 5 months ago

BiRefNet do a great job in separate the subject from the background no hole, the same from RemBG from LayerStyle node. By the way thanks a lot for you node pack really useful great job. Screenshot 2024-03-24 125032

melMass commented 5 months ago

Hi,

BiRefNet is planned but I don't think I will implement other methods. I did not know about LayerStyle but their implementation looks good and they already bundle multiple variants (rembg, briar etc..) The node in mtb is a simple implementation of the original RemBg that seem to have since received a few nice updates, I will also fetch those.

TLDR, yes for BiRefNet and updating rembg's update but for other methods I suggest dedicated extensions like LayerStyle and VideoMatting