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

  Рет қаралды 11,418

My AI Force

My AI Force

Күн бұрын

Пікірлер: 83
@mediaschoolai
@mediaschoolai 3 ай бұрын
Thanks!
@my-ai-force
@my-ai-force 3 ай бұрын
Thank you so much for the 'Super Thanks!' I really appreciate your support!
@baheth3elmy16
@baheth3elmy16 4 ай бұрын
Thank you very much for the workflow, you've put lots of work in it.
@my-ai-force
@my-ai-force 3 ай бұрын
Glad to hear your kind words, thanks.
@philippeheritier9364
@philippeheritier9364 4 ай бұрын
Amazing and brillant tutorial and thx for the workflow
@my-ai-force
@my-ai-force 4 ай бұрын
My pleasure! Thanks for your support.
@asdasd-d4c
@asdasd-d4c 3 ай бұрын
You are a genius, thanks for making this and explaining it!
@my-ai-force
@my-ai-force 2 ай бұрын
Thank you for the kind words.
@charlyharry
@charlyharry 4 ай бұрын
Well done, great job!
@my-ai-force
@my-ai-force 4 ай бұрын
Thank you very much!
@dankazama09
@dankazama09 4 ай бұрын
Nice! Keep em coming. Good job. 👌 Thank you
@my-ai-force
@my-ai-force 4 ай бұрын
Thanks, will do!
@user-yg4qo9zg3u
@user-yg4qo9zg3u 4 ай бұрын
wow, thank you 🌿
@my-ai-force
@my-ai-force 4 ай бұрын
You’re welcome 😊
@gbennett1000
@gbennett1000 2 ай бұрын
You are amazing
@zerefandmovier6078
@zerefandmovier6078 4 ай бұрын
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?
@Ansgar-m6y
@Ansgar-m6y 3 ай бұрын
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?
@tdfilmstudio
@tdfilmstudio 4 ай бұрын
@my-ai-force Hi, great workflow. All working fine. But results are very bad quality, after all steps. And whatever correct image size I give, the workflow changes the image size so that my source person is badly cropped and image size and ratio are changed by your workflow. Not sure how to correct that
@my-ai-force
@my-ai-force 4 ай бұрын
Thrilled you've used this workflow! 🎉 I’d love to dive deeper into how the people in the image are cropped after background removal. After removing the background, the individuals are scaled down using the ImageBlend node and then placed onto a custom blank canvas. This process slightly changes the original dimensions you set. To ensure the dimensions remain consistent when entering the SDXL model's latent space, it's best to make both the length and width multiples of 8. This helps maintain the integrity of your image dimensions throughout the workflow. If you have any more questions or need further assistance, feel free to reach out!
@tdfilmstudio
@tdfilmstudio 4 ай бұрын
@@my-ai-force Thank you for the clarification. I will try with your new instructions.
@vatsalsavaliya1640
@vatsalsavaliya1640 2 ай бұрын
Hello wei, amazing work !, can you please share the V2 workflow, the link that you provided has the v3 workflow and not v2, thanks
@my-ai-force
@my-ai-force 2 ай бұрын
All versions of V1, V2 and V3 can be downloaded by clicking the buttons on the right on OpenArt. From top to bottom are V3, V2, V1.
@xdevx9623
@xdevx9623 4 ай бұрын
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
@nelsonbravo7971
@nelsonbravo7971 4 ай бұрын
change image_to_image_strength to a value more than zero
@superlucky4499
@superlucky4499 4 ай бұрын
Another great video! Thank you!
@my-ai-force
@my-ai-force 4 ай бұрын
Glad you enjoyed it!
@TheBuffig
@TheBuffig 2 ай бұрын
I get no errors and everything moves smoothly, however, my background in the second stage always comes out completely grey. Any ideas?
@JACARITUBE
@JACARITUBE 3 ай бұрын
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!
@IzbacivacX
@IzbacivacX 4 ай бұрын
interesting workflow id like to try, thanks. altho, i cant get it running: ## Error Details - **Node Type:** KSampler - **Exception Type:** RuntimeError - **Exception Message:** mat1 and mat2 shapes cannot be multiplied (308x2048 and 768x320) any ideas? Edit: fixed that, needs another compatible checkpoint, but for some reason, the background from Relight to Repaint completly changes, and end result is just some plan colorless gray stuff
@my-ai-force
@my-ai-force 4 ай бұрын
Maybe you're using the one with the gray background for repainting.
@IzbacivacX
@IzbacivacX 4 ай бұрын
@@my-ai-force I'm using identical settings as u show 🤷
@kenjibailly
@kenjibailly 4 ай бұрын
I get a similar error: mat1 and mat2 shapes cannot be multiplied (3072x16 and 64x3072) This is on the Ksampler in the repaint group. I tried 2 different models in that group, being the one from the description and one that matches more the style of my image which is anime. But both give the same error. So I don't really know what I should do from here on. What did you do exactly to fix this?
@leolis78
@leolis78 4 ай бұрын
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
@my-ai-force
@my-ai-force 4 ай бұрын
Thank you again for your interest in the video and for appreciating the workflow! I’ve tested a variety of images and didn’t encounter any issues with the X-Labs Sampler. However, I did run into errors when I didn’t use “flux-dev” in the “Load Flux ControlNet” node or “flux1-dev-fp8” in the “Load Diffusion Model” node. I appreciate your suggestion to try Instantx ControlNet Union and Misto ControlNet. While I haven’t tested Misto ControlNet yet, I’ve found that Instantx ControlNet Union doesn’t perform as well as X-Labs ControlNet for my needs. If you have any more tips or questions, feel free to share!
@PPPMr-w7j
@PPPMr-w7j 4 ай бұрын
@@my-ai-force Thank you for your great work! I've been messing around with your workflow for the past hours, it provides me with a great learning experience! While I managed to get it running with Instantx Controlnet and their nodes I keep getting this "list index out of range" with X-Labs, even when using flux-dev for the controlnet and flux1-dev-fp8 for the Diffusion Model
@my-ai-force
@my-ai-force 4 ай бұрын
@@PPPMr-w7j Thank you so much for catching that issue! I’ve updated the workflow to use the newly updated Xlabs Sampler, which now includes an additional “Denoising Strength” parameter. In the previous version, setting “image_to_image_strength” to 0 worked fine, but with the new Sampler, you can’t set it to 0. It’s recommended to set it to 1 instead. If you have any more questions or need further assistance, feel free to reach out!
@AInfectados
@AInfectados 4 ай бұрын
After installing missing nodes, there is one that couldn't be found: *LayerColor: Brightness & Contrast* How i install it?
@my-ai-force
@my-ai-force 3 ай бұрын
You can try refreshing your browser or updating ComfyUI. Also, this node is not very important, so you can delete it.
@medianow100
@medianow100 4 ай бұрын
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.
@my-ai-force
@my-ai-force 4 ай бұрын
I'm thrilled to hear that the video was helpful for you! 😊 With so many parameters in the workflow, it's easy to accidentally misconfigure something. Have you had a chance to compare your setup with the original workflow to ensure all the parameters are correctly set? If you need any further assistance, feel free to ask!
@medianow100
@medianow100 4 ай бұрын
@@my-ai-force Yes I checked carefully from the KZbin that all the settings are the same. I found from experimentation that adjusting the Xlabs Sampler img2img and Denoise both to 1.0 solved my issue. Everything is working perfectly, thank you.🙂
@deyakash2504
@deyakash2504 2 ай бұрын
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 :)
@my-ai-force
@my-ai-force 2 ай бұрын
V2, V1 are all on the same page on OpenArt.
@ZakariaNada
@ZakariaNada 4 ай бұрын
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?
@chakhmanmohamed9436
@chakhmanmohamed9436 3 ай бұрын
Can this be transformed into an api? I mean change this into code?
@k.p.4336
@k.p.4336 4 ай бұрын
May I know which model you used in "Repaint>load ControlNet Model" ??
@valorantacemiyimben
@valorantacemiyimben 4 ай бұрын
Hello. I saw some workflows on KZbin. I downloaded them but I couldn't do them. If I showed them to you, would you prepare them for me for a fee so that I could do them?
@my-ai-force
@my-ai-force 4 ай бұрын
Thank you for your interest! Right now, I'm fully focused on creating videos to provide the best content I can. While I don’t have the capacity to offer additional services at the moment, I’m glad to help with any questions or comments you have right here on the channel. Your understanding and support are much appreciated!
@AndrewTateNewsOfficial
@AndrewTateNewsOfficial 4 ай бұрын
How long does it take normally for me it takes with an rtx3070 and 64gb of ram more than an hour
@janosbarsony2770
@janosbarsony2770 2 ай бұрын
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?
@my-ai-force
@my-ai-force 2 ай бұрын
github.com/kijai/ComfyUI-KJNodes
@anthrax0pranav
@anthrax0pranav 4 ай бұрын
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?
@my-ai-force
@my-ai-force 4 ай бұрын
I’m glad you liked the workflow! The outline of the subject comes from the Canny edge detection applied to the original image. If you have any more questions or need further clarification, just let me know!
@51uTubc
@51uTubc 4 ай бұрын
when I run last section(Restore Detail), 9 image coming out of Detail transfer node, Restore Detail node giving right image, what could be wrong
@laurencecatalano2186
@laurencecatalano2186 4 ай бұрын
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
@my-ai-force
@my-ai-force 4 ай бұрын
I totally get it-installing these nodes can definitely be a bit of a hassle. The good news is that these nodes are quite generic and you'll likely encounter them in various workflows. Once you get the hang of how they work, you'll find that your understanding of ComfyUI will really take off. Keep at it, and you'll master it in no time!
@nchadwickDOTcom
@nchadwickDOTcom 4 ай бұрын
@@my-ai-force I was able to load all the missing nodes except for two "Get_with_blank_bg" and "LayerColor : Brightness & Contrast" and idea how I can get those?
@laurencecatalano2186
@laurencecatalano2186 4 ай бұрын
@@my-ai-force Thank you Mr. Mao for your encouraging words. I haven’t given up and have managed to get all the nodes I’ll need. Currently I’ve made it as far as the 2ed grouping where I’m having a problem with the XLabs sampler. I’m getting an error message telling me that the sampler can’t process an image that’s been down sized somewhere to 145x112 ( or multiple of this) it needs sizes divisible by 2. My canny image to start is 1024X1326, it seems something is downsizing it before it reaches the sampler but I can’t figure out where. Anything you can tell me would be greatly appreciated, thank you.
@aliftaz1
@aliftaz1 4 ай бұрын
is 8 VRAM good enough for this workflow project ???
@Lifejoy88
@Lifejoy88 4 ай бұрын
Hi, bro! It looks like you run your Comfy as an application. When I start my Comfy on PC it runs in Browser. How can I start my Comfy also as an application?
@my-ai-force
@my-ai-force 4 ай бұрын
LOL, I’m running ComfyUI in my browser too! I just went full screen to make it easier for you all to see the interface clearly.
@DavidEmour
@DavidEmour 4 ай бұрын
I always got OutOfMemory even use 4090 card. All settings are same your default. When it runs to Xlabs Samplers of Generate Background, it shows out of memory. I use foto size 768 x 1536. Do you know why?
@DavidEmour
@DavidEmour 4 ай бұрын
Can you show which version ComfyUI that you run this workflow pls
@my-ai-force
@my-ai-force 4 ай бұрын
@@DavidEmour Here's the link: github.com/comfyanonymous/ComfyUI/releases. I'm using 3090, and it works well.
@lighteningnewspodcast
@lighteningnewspodcast 3 ай бұрын
I used RTX4080 and I need around half hour to generate 1 image , is that normal?
@IndianWeddingPhotographers
@IndianWeddingPhotographers 4 ай бұрын
I’ve been watching your KZbin 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
@SteMax-d6z
@SteMax-d6z 4 ай бұрын
thank you! This workflow requires a lot of memory, my 16G is full.
@my-ai-force
@my-ai-force 3 ай бұрын
My pleasure. You can try the GGUF version of Flux.
@IndianWeddingPhotographers
@IndianWeddingPhotographers 4 ай бұрын
I did pass through the xlabs error. I am now stuck at reapaint around loading: juggernautXL_v9Rdphoto2Lightning.safetensors Need help, please. Thanks
@icebergov
@icebergov 4 ай бұрын
how did you resolve it? I got the same: XlabsSampler list index out of range
@my-ai-force
@my-ai-force 4 ай бұрын
You might want to download the "Juggernaut XL Lightning" checkpoint from the link provided in the video description. It’s a great resource to enhance your setup. If you need any help with the download or setup, feel free to ask!
@sunnytomy
@sunnytomy 4 ай бұрын
how did you resolve the xlabs sampler error?really eager to know the solution as i have spent a whole day trying to figure it out, but no luck
@nchadwickDOTcom
@nchadwickDOTcom 4 ай бұрын
Amazing work, thank you for sharing it. Is there a way to use an existing image as the background instead of generating one?
@my-ai-force
@my-ai-force 4 ай бұрын
I'm glad to hear this workflow has been helpful for you! 😊 This workflow starts with an empty background of a size you define. You can then replace this blank background with your own background image and input it into the “ImageBlend” node to overlay it with the original image. From there, you might need to adjust some of the later nodes in the workflow to better align with your goals. If you have any more questions or need further adjustments, feel free to ask!
@nchadwickDOTcom
@nchadwickDOTcom 4 ай бұрын
@@my-ai-force Thank you SO much for the reply! What about relighting the subject to match the light of a background instead of the background matching the light of the subject? Is that an entirely different workflow? I'm still trying to get this workflow to work but I'm getting closer.
@Lovepeace595
@Lovepeace595 4 ай бұрын
After i updated my comfyui manager today, i can't use it, can't load the node module of Layer Style and Layercolor. I reinstall it many times. Could everyone help me? .....(Q~Q):
@my-ai-force
@my-ai-force 4 ай бұрын
Have you tried to manually install these nodes without ComfyUI Manager?
@Lovepeace595
@Lovepeace595 4 ай бұрын
​@@my-ai-force Yes, i tried this way, remove the folder on the "ComfyUI\custom_nodes\ComfyUI_LayerStyle", and manually install it again, but it still can't be worked. I will try update all ComfyUI later. Thank you.
@Lovepeace595
@Lovepeace595 4 ай бұрын
i fix it now, i update it all again, thank you
@minhvo.86
@minhvo.86 4 ай бұрын
Hi bro Please help noob ... ControlNetLoader 434: - Value not in list: control_net_name: 'sdxl/diffusers_xl_canny_full.safetensors' not in ['diffusers_xl_canny_full.safetensors', 'flux-canny-controlnet-v3.safetensors']
Seamless Outpainting with Flux in ComfyUI (Workflow Included)
11:21
Better Flux Inpainting with Area Cropping (Workflow Included)
10:35
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Too hot for itself? Sunlu E2 filament dryer
17:42
My Tech Fun
Рет қаралды 3,8 М.
NVIDIA SANA In ComfyUI - 100 Times Faster Than Flux And Render 4K Images
19:38
Future Thinker @Benji
Рет қаралды 44 М.
FLUX REDUX Simplified Workflow
9:02
goshnii AI
Рет қаралды 6 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН