Change background with inpaint & RemBG in ComfyUI, A.I. Stable Diffusion
HTML-код
- Опубликовано: 1 фев 2024
- In this workflow I will show you how to change the background of your photo or generated image in ComfyUI with inpaint. This can be useful if your prompt doesn't allow you to get the specific background you wish for. Sometimes it is easier to generate foreground and background one by one and then mix them together with a specific inpaint maodel and a mask.
Please comment if you have questions or tell me your suggestions for future videos.
Below you find the links to the needed models and custom nodes
Models:
huggingface.co/XpucT/Delibera...
Custom nodes:
github.com/WASasquatch/was-no...
github.com/Nourepide/ComfyUI-...
Connect with me:
/ _neuron_ai
/ _neuron_ai
The equipment that I use (affiliate links):
GPU: ASUS ROG STRIX RTX 4090 amzn.to/42ptUTi
#comfyui #stablediffusion #tutorial #animatediff #automatic1111 #aiart #ai #batchprocess #rembg #inpaint - Наука
thank you. this is very useful. it's a lot quicker than what other people are showing. simple and clean
Thank you for the nice words :)
I appreciate you for sharing this. Thanks!
great work thankyou so much
thanks for you comment :)
Very nice, thanks. Result is not great, but that probably is due to the checkpoint. I'll keep experimenting.
Great tutorial, I have one question: How can I create a empty scene? Even though I put "man, woman, people" in negative prompt, there's always someone behind my main guy (my source image). I tried "grey background" to test and occurs de same.
Yeah this is something which bugs me too. You could try to build a scen like in rhis tutorial and let the ksampler dream over it. ruclips.net/video/mAUpDrvs45k/видео.htmlsi=MrX51HMwJOlkcSQ6
@@neuron_ai Thx!
i cant found node on my comfy alpha channel as mask, only alpha channel add by mask only
Hi, if the search is not bringing the node up you can add it via the following: right click on background: add node > image > alpha > alphachannelasmask . be sure that the allor custom node is installed. hope that helps
it works, thanks mate
I can't find the node named alphachannelasmask in this page
you have to install the allor custom nodes. then you can double click on the brackground and search for it.
cool got it :)
Glad it helped you!
The node installation failed. How to install it manually? Where to install it?
You need to restart the server and then refresh the browser.
@@neuron_ai Thanks!
RuntimeError: Given groups=1, weight of size [128, 3, 3, 3], expected input[1, 4, 1024, 1024] to have 3 channels, but got 4 channels instead
why i have this issue?
that could be caused by the image you load.
Does the image have any alpha channel? do you get the error as well when loading a normal jpg?
@@neuron_ai only jpg works?
@@tailongjin-yx3ki no also png works. if jpgs work you might to have to convert the png first unless you can process it further. I think your png might have an alpha channel which might cause the error message.
only the Rembg gives my all kinds of errors. like CUDA problems.
any error messsge?
YOU TALK SO DAMN SLOWWWWWWWWWWWWWWWWWWWWWWWW!!!!!!!!!!!!!!!!!!!!!!!!!!!
I am sorry. I am a sloth. You can speed it up if it is to slow for you.