ComfyUI Flux (ControlNet) Workflow: Replacing Background for Anything (Portrait, Product, etc.)

preview_player
Показать описание
Welcome to the channel! In today's tutorial, we're diving into an exciting new technique for effortlessly changing photo backgrounds using ComfyUI and Flux models. Whether you're looking to enhance product shots, portraits, or any type of image, this step-by-step guide will show you how to create stunning transformations with ease.

Checkpoints:

Models:

Chapters:

0:00 - Intro

1:15 - Overview of the Workflow

2:22 - Node Group 1: Background Removal

5:33 - Node Group 2: Background Generation

9:56 - Node Group 3: Relighting

11:32 - Node Group 4: Repainting

12:41 - Node Group 5: Detail Restoration
Рекомендации по теме
Комментарии
Автор

You are a genius, thanks for making this and explaining it!

asdasd-dc
Автор

Thank you very much for the workflow, you've put lots of work in it.

bahethelmy
Автор

Amazing and brillant tutorial and thx for the workflow

philippeheritier
Автор

Nice! Keep em coming. Good job. 👌 Thank you

dankazama
Автор

Great video, I really want to use your workflow, but I keep getting this error message: (ComfyUI-Inspyrenet-Rembg fix failed: This action is not allowed with this security level configuration.) How can I fix this? Thanks!

JACARITUBE
Автор

Hey man, the workflow to download is not the one you're showing here. The relighting is gone and sadly that is exactly what I would have loved to use. Can I download your whole workflow from somewhere? Is it in your patreon side?

Ansgar-my
Автор

Hello Wie, this has got to be the mother-of-all background modification workflows. Congratulations on putting this up and thank you so much. In the chapter on Background Generation using Flux - is the subject outline in the Flux image inherited from the original image or are you using text prompts to get the same outlines for the placeholder subject?

anthraxpranav
Автор

Can this be transformed into an api? I mean change this into code?

chakhmanmohamed
Автор

Hi is there anyway you can share the V2 version of this workflow? Every link leads to V3, but that doesn’t do a good job with relighting.. Thanks :)

deyakash
Автор

May I know which model you used in "Repaint>load ControlNet Model" ??

k.p.
Автор

It looks mega great, thank you, but after all installed missing nodes I´m still missing GetNode and SetNode, could you please help me how to install those? or anyone her?

janosbarsony
Автор

Hi, great video as are your others which have been very useful, thank you. I have 1 issue with this workflow and that I cannot generate the background image in the second module and just left with a grey background and hope you can shed some light please? Everything else executes perfectly.

medianow
Автор

Good day! When I try to start workflow I got list index out of range from xlabssampler. Did you know how to fix this issue?

zerefandmovier
Автор

Hi, it's not working for me, I'm getting an error: *Node Type:** XlabsSampler **Exception Type:** IndexError **Exception Message:** list index out of range. EDIT: The WF logic seems to be correct, it seems to be an issue with the X-Labs Sampler when it receives the Latent from the VAE Encode. It seems that it does not accept the Pixels + Vae. Replacing the controlnet model with a more stable one, like Instantx Controlnet Union or Misto Controlnet should solve the problem. Thank you very much for continuing to make WF great. !!!! Regards

leolis
Автор

Hey I really want to try your workflow out but I am facing this error
Error occurred when executing XlabsSampler:

list index out of range

xdevx
Автор

I’ve been watching your YouTube videos and using your workflows for my projects. I appreciate the value they bring.

I'm seeking your help with workflows for my project using Flux-1 Dev Full Version:
On my Windows 11 desktop, I'm using the Stability Matrix interface to run ComfyUI.

# ComfyUI Error Report
## Error Details
- **Node Type:** XlabsSampler
- **Exception Type:** IndexError
- **Exception Message:** list index out of range
## Stack Trace
```
Thanks! Surinder Singh

IndianWeddingPhotographers
Автор

thank you! This workflow requires a lot of memory, my 16G is full.

SteMax-dz
Автор

After installing missing nodes, there is one that couldn't be found: *LayerColor: Brightness & Contrast*
How i install it?

AInfectados
Автор

I'd love to try out your workflow but I don't like how long it's taking to generate since I'm on 3060 12GB. How long it'staking to genzrate on wwhich GPU?

ZakariaNada
Автор

I’d love to be able to use your workflow but I just loaded it into my comfy and I’m missing about 40 nodes, It's very daunting to chase after each of these

laurencecatalano