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! 🫶