NokiMo
Aitrepreneur
Aitrepreneur

patreon


1-Click INSTALL KONTEXT AI IMAGE EDITING KING ComfyUI WebUI!

Hey everyone! I've created a 1-click installer for the newest "THE NEW MULTIMODAL AI KING!", called "KONTEXT". Simply THE MOST POWERFUL AND INSANE AI IMAGE EDITING MODEL EVER! A brand new 12-BILLION-PARAMETER model from the makers of Flux called “Kontext”. A multimodal model that is able to automatically edits images with incredible precision. The amount of things you can do with this model is just mind blowing AND by using the brand new Nunchaku model, can generate images IN SECONDS!!!… It's just amazing!

You can check out the video right here: https://youtu.be/Lsz3tlbBaqM

The workflow: https://www.patreon.com/posts/133144010

The installer of course automates the entire install process for comfyUI and the models downloads!

LOCAL INSTALL!!! RECOMMENDED TO START FROM SCRATCH SINCE YOU NEED THE LATEST COMFYUI TORCH VERSION!!! AND FOR EASY NUNCHAKU INSTALLATION!

1. Download the KONTEXT-COMFYUI-MANAGER_AUTO_INSTALL.bat

2. Run the bat file and select either option 1, 2 or 3 depending on your GPU vram and then determine if you want the FP8 model (best if you have more than 16gb of vram) THEN select if you want to install the Nunchaku model (HIGHLY RECOMMENDED FOR EVERYONE!). Press 1 if you have a 5000 series GPU or 2 if you have another older GPU.

3. Wait for the install to finish

4. The webui will launch, load the FLUX_KONTEXT_IMAGE_EDITING.json file and there you go😎

IF YOU ALREADY HAVE COMFYUI INSTALLED USING A PREVIOUS INSTALLER (not recommended):

1. Download the KONTEXT-MODELS-NODES_INSTALL.bat and place it in the ComfyUI_windows_portable\ComfyUI folder

2. Run the bat file and select either option 1, 2 or 3 depending on your GPU vram and then determine if you want the FP8 model (best if you have more than 16gb of vram) THEN select if you want to install the Nunchaku model (HIGHLY RECOMMENDED FOR EVERYONE!). Press 1 if you have a 5000 series GPU or 2 if you have another older GPU.

3. Wait for the install to finish

4. ???

5. Profit 😎

IF YOU GET AN ERROR WHEN LAUNCHING COMFYUI AFTER USING THIS INSTALLER SAYING "AssertionError: Torch not compiled with CUDA enabled" it's ok don't panic.
Just go inside the python embedded folder, click on the folder path, type cmd press enter, this will bring the command prompt window and there type:

python.exe -m pip uninstall torch

python.exe -s -m pip install --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

--->replace cu128 by your cuda version (if you don't know your cuda version just open a new cmd window and type nvcc --version it will then tell you at the end Cuda compilation tools, release 12.8, V12.8.93 or something different like 12.6, in that case just use cu126 instead of cu128)


IF YOU ARE USING RUNPOD:

1. Create an account if you haven't already: Runpod

2. Click on Pod (on the left side) then click deploy

3. Choose a GPU with at least 24gb of VRAM (4090 is best), click here for the comfyui template  (aitrepreneur/comfyui), then edit the template and choose 80gb for both the container and volume disk, then deploy on demand

4. Go to my pods, wait for everything to finish and then click "connect", then "Connect to HTTP SERVICE port 8888"

5. Then go inside the comfyui folder and then drag and drop the KONTEXT_AUTO_INSTALL-RUNPOD.sh file on the left side of the UI then click on the "Terminal" icon on the right side on the UI

6. Copy and paste these two lines then press enter:

chmod +x KONTEXT_AUTO_INSTALL-RUNPOD.sh

./KONTEXT_AUTO_INSTALL-RUNPOD.sh

7. Wait for everything to be installed

8. Go back to the port 3000 and click on the manager to update comfyui and restart it

9. Load the FLUX_KONTEXT_IMAGE_EDITING.json file and there you go😎

Also use the command: tail -f comfyui.log

inside the workspace/logs to get the real time logs so that you always know when the install is done, It will then ask you to restart, so click on that restart button, wait for the webui to reboot, click refresh once it's done and there you go.

IF YOU ARE USING RUNPOD AND YOU WANT TO STOP THE POD THEN RESTART IT:

1. Go inside your pod

2. SERVICE port 8888

3. Go inside the Comfyui folder, open a terminal icon and re copy and paste those two lines:

chmod +x KONTEXT_AUTO_INSTALL-RUNPOD.sh

./KONTEXT_AUTO_INSTALL-RUNPOD.sh

4. And then in a few seconds it will reinstall all the requirements for the nodes

5. Go back to comfyui port 3000, click on manager, click update all, wait for everything to be updated then restart.

6. Re drag and drop the FLUX_KONTEXT_IMAGE_EDITING.json file inside, it will then tell you that a node is missing, just click on the manager button, click on install missing nodes, select the nunchaku node then click install, restart the webui and there you go😎

As always, supporting me on Patreon allows me to keep creating helpful resources like this for the community. Thank you for your support - now go have some fun😉!




Ps: Sorry for being very quiet again, some of you kinda know the drill by now....it's nothing new...spend a few days in the hospital and was bedridden for a while so thank you all for being patient! 🫶

1-Click INSTALL KONTEXT AI IMAGE EDITING KING ComfyUI WebUI!

Comments

So just trying to get this to work at this point... Apparently 3.44 is no longer available and times out. If you manually get a copy and put it in the same folder the script isn't aware.... So I made a new script... but Either way non of this is working... Was my whole purpose to subscribe. I mean ... even the characters are shown in the wrong encoding. So a ``` :: Set codepage to UTF-8 to minimize display issues chcp 65001 >nul ``` Is required.

Tibby

no you need to use the installer to install all the models and nodes. The workflow is just a file

Aitrepreneur

Running this with a 1080TI. I was under the impression that when I run the workflow for the first time it would auto download all the missing models and loras. Is this not correct or am I doing something incorrect as I get a message that I'm missing clip, model and vae

AR reality

any help?

mnkjiu

Are you able to share this LoRA: llama-anon/not-flux-kontext-dev-clothes-remover? For research purpose of course

mnkjiu

yes

Kevin

you can only load kontext loras

Aitrepreneur

Hello , I can load any Loras from civitAi , I put all in lora files but cant load in power lora loader , help please

Zaiross

Yup an update just wrecked the nunchaku install, I've updated the installers, redownload them from the page and preferably do an install from scratch

Aitrepreneur

I did a clean install with option 1. I got this error: Missing Node Types When loading the graph, the following node types were not found NunchakuFluxLoraLoader NunchakuFluxDiTLoader Then I tried option 2. I still get the same errors. The other nodes work fine, I just can't use Nunchaku. Any idea what causes this, and or a fix?

Not_Mad_Man

One thing you can do is once the nunchaku custom node has been installed, you can load this special workflow: https://www.mediafire.com/file/hxdnzksadv0arg5/install_wheel.json/file inside comfyui and then click run (as if you are generating an image), it will then download an install correctly the correct nunchaku wheel. You can then restart comfyui reload the workflow and it will work

Aitrepreneur

Any update on fixing the matter Missing Node Types error (NunchakuFluxDiTLoader, NunchakuFluxLoraLoader). Just subbed and would love to try this. <3

chilly binn

yo pude solucionar el problema por medio de Software "Windsurf" tuve que darle acceso a mi carpeta de instalacion y despues me soluciono el problema. resulta que tenia una incopatibilidad de numpy. ¿Cuál fue la solución? Bajamos la versión de numpy a 1.26.4 Esto resolvió el error de incompatibilidad binaria (ValueError: numpy.dtype size changed...) que impedía cargar correctamente los nodos de ComfyUI-nunchaku y insightface. Reinstalamos insightface Esto recompiló/descargó las extensiones Cython de insightface y sus dependencias, asegurando que fueran compatibles con la versión de numpy instalada. ComfyUI arrancó correctamente Al iniciar ComfyUI después de estos pasos, ya no apareció el error de incompatibilidad binaria, y los nodos personalizados (incluyendo ComfyUI-nunchaku) pudieron cargarse. ¿Por qué funcionó? La incompatibilidad binaria ocurre cuando los módulos Cython (como los de insightface/face3d) fueron compilados para una versión de numpy diferente a la que está instalada. numpy 2.x todavía no es 100% compatible con todos los paquetes de IA en Windows, por lo que la versión 1.26.x es la más segura para estos entornos. Al reinstalar insightface después de bajar numpy, aseguramos que las extensiones se recompilaran (o se descargara un wheel compatible) para esa versión específica de numpy.

Ricardo Sanchez

Hi! Can you try and see it way not work .?? I was made it from scratch and nothing

Carbureanu Ionut

Did a clear install of ComfuUI and when I drag the workflow.json file in, I'm getting the "Missing Node Types" message, saying it's missing 'NunchakuFluxDiTLoader' and 'NunchakuFluxLoraLoader'. I can't use the 'update all' button. When I open the manager, the 'missing' TAB is empty, in the 'Workflow' TAB the 'ComfyUI-nunchaku' (v 0.3.3) Node is greyed out and when I try to update it, it doesn't work... Please help

Robert Hulsteijn

Hello sir,will this work for 8gb Rtx 3050?

Kappak Amaru

L4 apparently uses Ada Lovelace architecture so choose number 2

Aitrepreneur

For AMD I have seen that apparently comfyui portable works but you might need to adapt it to AMD with a few commands: https://atlassc.net/2025/01/15/installing-comfyui-on-windows-for-amd-gpus I don't have an AMD so I can't make sure that my installer works for AMD GPUs

Aitrepreneur

send me dm with more info, GPU, screens, error log, etc

Aitrepreneur

I don't own any apple products so I can't make sure that they work on my side nor can I provide support for it

Aitrepreneur

Good question, I haven't any model trained on celebrities yet

Aitrepreneur

Hey - quick question. When I want o install nunchaku but my gpu is Nvidia L4 -> should i choose the number 1) Nvidia 5000 series GPUs or 2) older gpus? L4 is not really the consumer product with 3000 4000 or 5000 series, so i wasnt sure which one to choose to make it work

Szymon Niewolski

Any Install options for AMD graphics cards?

DravenLock

I am not able to install NunchakuFluxDiTLoader or NunchakuFluxLoraLoader in my current conda comfy install and I get black output with Nunchaku in the Comfyui portable. I have been going in circles with Gemini 2.5 pro and Qwen trying to trouble shoot this. I have updated everything and even ran the installers twice. Does anyone else have this problem on Windows or is this an operator error on my part?

Slap Dash Dolt

Any chance to get a 1-click install for the mac version of ComfyUI (M4 Max chip)?

Goldsight Daemon

Does anybody know where to find celeb loras for flux Kontext especially now that civitai removed them

Benni

Yup a recent update broke it, I've fixed it now. Redownload the installer from the page again. This time no need to reinstall missing nodes, once you have run the installer and updated comfyui, everything will be there

Aitrepreneur

These never install on RunPod, thus Nunchaku doesn't work. NunchakuFluxDiTLoader NunchakuFluxLoraLoader FP8 works though.

Per

send me a dm with more info, like screens

Aitrepreneur

i am getting this error RuntimeError: The size of tensor a (4032) must match the size of tensor b (8300) at non-singleton dimension 1 when trying to run the new lora any fixes

Padraig Kane

dm me more info

Aitrepreneur

I got more things for the ai videos coming yes :)

Aitrepreneur

Couci-couça mais ça va :)

Aitrepreneur

I show how to get a new copy in my last video, go to tensort art and search for the "kontext" user

Aitrepreneur

I show how to get a new copy in my last video, go to tensort art and search for the "kontext" user

Aitrepreneur

I show how to get a new copy in my last video, go to tensort art and search for the "kontext" user

Aitrepreneur

you need to install git for windows

Aitrepreneur

Following this !

Giant Jack

hugginface "cleaned house" and removed the... spicy Loras. Any idea where to find them now?

Mailman

Did the auto install, and followed along with the video. I put the checkpoint in the checkpoint folder and tried to run something. It stopped at 33% and said reconnecting. The terminal says it's paused and to "press any key to continue", I do so and it boots me out completely. I havent been able to generate one image. Would love some assistance

Joshua Whigham

I deleted the aiohttp directories N:\AI\Programs\cmfyv3a\ComfyUI_windows_portable\python_embeded\Lib\site-packages (aiohttp*.?) then ran this, replacing 'N:\AI\Programs\cmfyv3a\' with your install dir.. N:\AI\Programs\cmfyv3a\ComfyUI_windows_portable\python_embeded\python.exe -m pip install --force-reinstall --no-deps aiohttp==3.12.13 your mileage may vary and it may break or make things worse but it allowed mine to run.

Wangers n Mash

Update everyone, I found the problem. I was only using one image and did not disable the second image input box.

Christopher Carlson

Thank you for everything you do! Any chance we get a workflow to connect Wan video? This guy made a Kontext to Wan v2v workflow... https://www.youtube.com/watch?v=IXthAWzdPIE

MM

Hello, Please Help - it started normally, I put your older Json for video, tried to install missing , and after restarting is giving this message: File "C:\AI\COMFI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\aiohttp\http.py", line 5, in from . import __version__ ImportError: cannot import name '__version__' from 'aiohttp' (unknown location) C:\AI\COMFI\ComfyUI_windows_portable>pause Press any key to continue . . . I tried to update , restarted several time, computer too. The same result. What to do?

ПРОСВЕТЕН

j'espère que tu vas bien

Julien Natter

when I try to use flux kontext I get the error Prompt execution failed Prompt outputs failed validation: LoadImage: - Custom validation failed for node: image - Invalid image file: Volume_12_29.webp you can see it here https://drive.google.com/file/d/1_kc8jrrMFnABj0hhg8j8aQUNXNalXuMV/view?usp=sharing the image I am trying to use is in jpg not webp have no idea what file Volume_12_29.webp is

Christopher Carlson

hi ari do you have good lora could send me a link pls

Padraig Kane

i can't seem to find the lora needed can someone pls link me it, much appreciated

Padraig Kane

Everything works great, ty. No nsfw lora though, gone from hugging face. Is there a way you could share your download? Ty

Aaron1611

The lora is missing can someone link me please

Joseph Ronie

Finally found a setup that works. Thank you ! Able to produce image but have an error that says until finally completed 0%| | 0/20 [00:00

Ari Verzosa

update phyton your problem is that the file is called nx-loopback phyton does not recognize "-" it should be called nx_loopback. but i am not an expert

Tom Schniedel

I'm getting a SyntaxError early in the installation of the KONTEXT-COMFYUI-MANAGER_AUTO_INSTALL.bat See below: File "dataclasses.py", line 1265, in wrap File "dataclasses.py", line 1063, in _process_class File "dataclasses.py", line 619, in _init_fn File "dataclasses.py", line 473, in _create_fn File "", line 1 def __create_fn__(__dataclass_type_nx-loopback__, __dataclass_HAS_DEFAULT_FACTORY__, __dataclass_builtins_object__, __dataclass_return_type__): ^ SyntaxError: invalid syntax Press any key to continue . . .

fBombX220

i love u soooo much!!!!!

Tom Schniedel

hello when i try to install it says unsupported 16 bit app what can i do to fix it can anyone help? thanks!

Padraig Kane

In the models/lora folder then load it from the lora loader node (the pink one)

Aitrepreneur

Probably not, stability ai is dead as a company and stable diffusion 3.5 doesn't hold a candle to flux so kinda useless

Aitrepreneur

I'm aware of the issue, I'm trying to find a solution. No worries I got them all saved up locally

Aitrepreneur

the NSFW model is no longer available on hugging face.

Christopher Carlson

Any chance to get a One click installer for the new Stable Diffusion 3.5 Models Optimized with TensorRT released in June by StabilityAI and Nvidia ? Thanks, take care !

Artyom

Where do I have to put the nsfw Loras and activate them

Christian LOUIS

Yeah like 30gb Maybe? I don't remember but something around that

Aitrepreneur

there is no controlnet models for Hidream, the model unfortunately completely flopped with the community to my dismay

Aitrepreneur

how much HDD space is needed to run V3-MODELS-NODES_INSTALL.bat ?? Will python.exe -s -m pip install --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 work or do I have to have 12.6 or higher CUDA? *edit: To confirm that installation command/CUDA install did indeed work.

HealingPaint

Same here after following the video. Last night I was able to get nunchaku to load fine after update all, but not today.

Tyler89537

Thanks and I hope your feeling better soon. Your videos are the best 👌

Alpha Ghost 47

Hi, i run this on runpod. When trying to install nunchaku nodes i get error message "import failed" and nunchaku is not available. After restart and refresh it again shows a message that nunchaku nodes are missing

Dawan Star

You Rock! Would love to see a video about using controlnet with Hidream, if that is even possible. Keep up the good work!

Extreme Mojo

Sorry to hear about the health issues, hang in there! Also, thanks for the new 1 click installer.

VR AnimeTed

You need to install git for windows

Aitrepreneur

tried the auto installer 'git-setup.exe cannot start or run due to incompatibility with 64bit versions of windows'.

anooying

Yeah I'm interested in that as well, I will make it my priority, Kontext is such an incredible model fr..

Aitrepreneur

It can happen, some GPU have slower connection speed, the way to solve that is to simply run a new pod, with the same gpu and wait until this one starts so you can stop the one still running. It usually takes like a minute or 2 for the pod to start

Aitrepreneur

Dm me but have you followed the video, I show everything at the end

Aitrepreneur

you might have to first update comfyui using the updater inside the update folder first to make 100% sure you got the very last version before running the installer. You also need to check is the nunchaku wheels were installed correctly with your version of comfyu. If you have any issue you can dm me

Aitrepreneur

No you don't have to, you can use the KONTEXT-MODELS-NODES_INSTALL.bat instead like explained in the video but you might have to first update comfyui using the updater inside the update folder first to make 100% sure you got the very last version before running the installer.

Aitrepreneur

Sorry to here of your health issues, K. I hope you recover quickly. In your video you asked if people might be interested in a video on how to train loras for Kontext.... Hmmm, Is the Pope Catholic? I think you have your answer right there! Do take your health in to account though! Thanks again for all your great videos and installers.

LW

Yo, how long does it take to deploy template on runpod? Usually pod deployment took at most couple of minutes but now I selected your template and it's been deploying for 30 minutes with no end in sight. I just see "still fetching image" message...

Wiktor Waszak

For some reason it does not update, apply the nunchaku node and also i try to update comfyui it is not doing it, tried refresh, stopping it and starting it again. I am Runpod user. Any idea?

Kerfelox

I used the Kontext model install only because I already had Comfyui installed, but how can I download Nunchuk now? It wont update properly through the manager

Firmy Van Bas

Hi, :) Thx for this. I have the latest confyUI instaled. Do i really need to remove mine to get this .bat Installation working. I have so many other models/Custom nodes and workflows in my current set up. I don't wanna louse or do smth that will make my files not work anymore. Thank you

realexis christofides

Some work but usually no, you need new loras since it's a new model

Aitrepreneur

Hello, this is great. Can I use my custom LoRas I trained on Flux.dev with Flux Kontext ?

Yu Yeh

Watch the video If you haven't already I explain everything there and also read the prompting guide, Kontext is kinda difficult to use if you don't know how to prompt for it correctly hence why so many people missed out on it.

Aitrepreneur

Glad to see you back! I had to install ComfyUI from scratch, but it is now working like a charm, thanks. Brief question: How does the second image input work? Can I add specific objects to a character?

Julian

just download and install git for windows

Aitrepreneur

2 issues, looks like the image you are using might be corrupted or an invalid format and you have not selected the correct model in the gguf workflow.

Aitrepreneur

I'm hoping for better ones. The current nsfw loras aren't very good. The one mentioned in the video is blurry and the other one seems unreliable.

FractalD

My bad, I changed it

Aitrepreneur

They clarified the license, outputs are authorized for commercial use. Also in reality, in practice, it's not like they actually enforce the license, I have never heard of anyone actually having an issue because of the license.

Aitrepreneur

Hello! I am not sure if I am doing something wrong, I downloaded the auto installer and i keep getting an error saying "Unsupported 16-bit application" and to check with the software vendor to ask if a 64-bit windows compatible version is available. Is this on my end? For context, I am running this on a windows 11 box, I have had no other issue running your other auto-installers! Thanks you :)

Matthew Salinas

Ignore me for now. I should have watched the video first :D

Brumfondl Majikthise

Getting a similar error to Anton: Prompt outputs failed validation: LoadImage: - Custom validation failed for node: image - Invalid image file: doll_1.webp LoadImage: - Custom validation failed for node: image - Invalid image file: assets_task_01jyx74gdaftj8szqkve06bpch_1751179817_img_1.webp

Brumfondl Majikthise

Best one yet Just got to see if someone brings out a nsfw lora

Sam

i've repeated steps exactly as in tht video, with the same prompt: Prompt execution failed Prompt outputs failed validation: LoadImage: - Custom validation failed for node: image - Invalid image file: Volume_12_29.webp UnetLoaderGGUF: - Value not in list: unet_name: 'flux1-kontext-dev-Q8_0.gguf' not in ['flux1-kontext-dev-Q4_K_S.gguf']

Anton Karpuzikov

Not sure why the VACE_IMAGE_TO_VIDEO WORKFLOW is mentioned here for the runpod part

Aditya Sharma

It says "5. Profit" but they say "This model falls under the FLUX.1 [dev] Non-Commercial License.". So I assume we can't profit from it as that would be using it commercially. Unless there's some other page (that I can't see) where they say it can be used/the outputs can be used commercially. BAGEL allows commercial use though and that's open source.

cool1


Related Creators