fofr/cog-comfyui

Request for addition of Lama remover (object) (e.g. - https://github.com/sipherxyz/comfyui-art-venture)

Closed this issue ยท 11 comments

Hi Fofr, thanks for adding Ic-light.

I have another request for the addition of lama remover.

Background removal can be achieved in multiple ways but I am not getting a better way to remove foreground objects than using lama remover. One that worked well for me was. - https://github.com/sipherxyz/comfyui-art-venture

Can you please add this / or the relevant custom node?

fofr commented

Lama looks like a great thing to add, how about these nodes?
https://github.com/Acly/comfyui-inpaint-nodes

inpainting takes time. lama is very fast and straightforward. lama picks up a single object in the foreground on its own as well. In terms of running a complex comfy UI process (multiple nodes), a single node point helps.

On a separate note, wanted to get your views on the background remover node. Do you suggest any other background remover node other than BRIA? I have tried unet and others but the results are not as good as Bria's. Would be grateful, if you could guide if to any other resource.

i should have looked better at the link you shared. this looks great too - Inpaint Models (LaMA, MAT) in the link you shared. i will try on local tomorrow and let you know the result.

fofr commented

BRIA is my goto background remover too, there is also layerdiffuse which can make images with native transparency.

I used Inpaint models. it works great. Can you please add this? Would help me to test it on replicate. Thank you!!

Screenshot 2024-07-22 at 11 05 28 PM
fofr commented

@aichromator btw, what custom node shows you the custom node labels against the nodes?

fofr commented

I'll look at adding these tomorrow.

Activate the names here -

Screenshot 2024-07-23 at 7 37 15 AM

Another good remove background option that I found yesterday was - https://github.com/plemeri/InSPyReNet. It has a comfy node too. The obvious reason for suggesting it is the MIT license. The results are great (comparable to best and much better than unet, isnet etc)

It would be great if you could add a node for Inspyrenet.

I am learning how to create a fork and do it on my own but I believe these nodes (suggested) will be useful to a wider audience as well :)

fofr commented

I've added in 77f7a93

Please can you try on:
https://replicate.com/fofr/any-comfyui-workflow

This works well!

Thank you again fofr :)