Home Creators Posts Import Register Favorites Logout

Downloads

Content

Patreon exclusive posts index to find our scripts easily, Patreon scripts updates history to see which updates arrived to which scripts and amazing Patreon special generative scripts list that you can use in any of your task.

Join discord to get help, chat, discuss and also tell me your discord username to get your special rank : SECourses Discord

Please also Star, Watch and Fork our Stable Diffusion & Generative AI  GitHub repository and join our Reddit subreddit and follow me on LinkedIn (my real profile)

=======

🪶 MagicQuill: An Intelligent Interactive Image Editing System

Repository : https://github.com/magic-quill/MagicQuill

Latest zip file : magic_quill_v4.zip

20 March 2025 Update

Now supports RTX 5000 series as well - make a fresh install

Higher resolution arrived - uses more VRAM

Automatic save every generated image arrived

RunPod installers completed working great ,

We use with Cloudflared since Gradio share doesn't work

Massed Compute installers completed working great

We use with Cloudflared since Gradio share doesn't work

If you need new features let me know the devs are responsive

Windows Requirements

Python 3.10, FFmpeg, CUDA 12.4, cuDNN 8.9.7, C++ Tools and Git

If it doesn't work make sure to below NEW tutorial and install everything exactly as shown in this below tutorial

https://youtu.be/DrhUHnYfwC0

How To Install And Use

Windows:

First watch above requirements tutorial and follow every step

Extract zip archive into a drive like c:/magic_v2

Double click and install with Windows_Install.bat and that is it

Then run with Windows_Start.bat

RunPod

Please register via this link : https://runpod.io?ref=1aka98lq

Then follow Runpod_Instructions_READ.txt

Same as my any other RunPod installer script

Use the template written in Runpod_Instructions_READ.txt file

Example tutorial for learn how to install and use RunPod

(starts at 22:03) : https://youtu.be/KW-MHmoNcqo?si=QN8X8Sjn13ZYu-EU&t=1323

It will start Cloudflared link pay attention to that

Massed Compute (Recommend Cloud) :

Please register via this link : https://vm.massedcompute.com/signup?linkId=lp_034338&sourceId=secourses&tenantId=massed-compute

Use our coupon SECourses

Our coupon works on following GPUS

L40 : 625 GB Disk Space, 128 GB RAM, 48 GB GPU: 53 cents per hour

RTX A6000 [Premium], 300 GB Disk Space, 96 GB RAM, 48 GB GPU: 34 cents per hour

RTX A6000 : 256 GB Disk Space, 48 GB RAM, 48 GB GPU: 33 cents per hour

ALT RTX A6000 : 256 GB Disk Space, 32 GB RAM, 48 GB GPU: 32 cents per hour

Then select our image SECourses from Creator dropdown

Same as my any other Massed Compute installer script

Example tutorial for learn how to install and use Massed Compute

(Starts at 12:58) : https://youtu.be/KW-MHmoNcqo?si=G1WbG-Qw4ujWvOtG&t=778

It will start Cloudflared link pay attention to that

 

Files

Comments

Felix Rockwell

Hey, are you going to make a Youtube tutorial about this?

Felix Rockwell

Great, looking forward to it, looks promising.

joaquin me llamo

hello Which one do you recommend RunPod or Massed Compute?

Ahmet Inceelli

Oh yes. Just like Adobe Generative Fill. But free and more creative.. Thanks.. 👍

Mark Sutherland

Thank you sir for fulfilling my request, have a great day and thanks again

Евгения Еремеева

Hi, I installed the application, but it does not start and it is written "TypeError: expected str, bytes or os.PathLike object, not NoneType"

Евгения Еремеева

where can I get the installation logs? reinstalled it again and again the same problem "TypeError: expected str, bytes or os.PathLike object, not NoneType"

Nabil Boulezaz

C:\AI\Txt2Img\WorkAI\MagicQuill>cd magicquill C:\AI\Txt2Img\WorkAI\MagicQuill\magicquill>git pull Already up to date. C:\AI\Txt2Img\WorkAI\MagicQuill\magicquill>echo . . C:\AI\Txt2Img\WorkAI\MagicQuill\magicquill>echo Task completed. If something causes error execute Install bat file again Task completed. If something causes error execute Install bat file again C:\AI\Txt2Img\WorkAI\MagicQuill\magicquill>pause Press any key to continue . . . i dont think Windows_Update works

Jakis Ktos

I've done everything according to your video, I've tried to install several times and every time during installation an error pops up: “ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: Y:\magicquill\MagicQuill\LLaVA (A "pyproject.toml" file was found, but editable mode currently requires a setuptools-based build.)” And at startup: “Y:\magicquill>call .\venv\Scripts\activate.bat || exit /b Traceback (most recent call last): File "Y:\magicquill\gradio_run.py", line 16, in from MagicQuill.llava_new import LLaVAModel File "Y:\magicquill\MagicQuill\llava_new.py", line 10, in from llava.conversation import conv_templates, SeparatorStyle ModuleNotFoundError: No module named 'llava' Press any key to continue . . ..” Are you able to help something? Other programs are running normally.

Anshul Gupta

You should make possible run Hunyuan ai Video generate model it will provide better result than your CogVideoX. For reference i am providing of a youtube video that made it possible "https://www.youtube.com/watch?v=quOhEKnSTqg". i hope you will do it because i believe in you, you can made better result providing soultion with Hunyuan ai Video generate model. Result of this repo is not good but still better and dont forget to add image to video generation with this model.

Huey

This is an awesome tool, thank you! I added --share to the windows run batch file but it is not working. Is there a way to add the feature gradio share like in the instantid app?

zz (edited)

Comment edits

2026-09-07 10:00 Hi there which error is this F:\Magic Quill>cd magicquill F:\Magic Quill\magicquill>call .\venv\Scripts\activate.bat || exit /b Traceback (most recent call last): File "F:\Magic Quill\magicquill\venv\Lib\site-packages\numpy\core\__init__.py", line 24, in from . import multiarray File "F:\Magic Quill\magicquill\venv\Lib\site-packages\numpy\core\multiarray.py", line 10, in from . import overrides File "F:\Magic Quill\magicquill\venv\Lib\site-packages\numpy\core\overrides.py", line 8, in from numpy.core._multiarray_umath import ( ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "F:\Magic Quill\magicquill\venv\Lib\site-packages\numpy\__init__.py", line 144, in from numpy.__config__ import show as show_config File "F:\Magic Quill\magicquill\venv\Lib\site-packages\numpy\__config__.py", line 4, in from numpy.core._multiarray_umath import ( File "F:\Magic Quill\magicquill\venv\Lib\site-packages\numpy\core\__init__.py", line 50, in raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.12 from "F:\Magic Quill\magicquill\venv\Scripts\python.exe" * The NumPy version is: "1.26.4" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: No module named 'numpy.core._multiarray_umath' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "F:\Magic Quill\magicquill\gradio_run.py", line 3, in import gradio as gr File "F:\Magic Quill\magicquill\venv\Lib\site-packages\gradio\__init__.py", line 3, in import gradio._simple_templates File "F:\Magic Quill\magicquill\venv\Lib\site-packages\gradio\_simple_templates\__init__.py", line 1, in from .simpledropdown import SimpleDropdown File "F:\Magic Quill\magicquill\venv\Lib\site-packages\gradio\_simple_templates\simpledropdown.py", line 7, in from gradio.components.base import Component, FormComponent File "F:\Magic Quill\magicquill\venv\Lib\site-packages\gradio\components\__init__.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "F:\Magic Quill\magicquill\venv\Lib\site-packages\gradio\components\annotated_image.py", line 9, in import numpy as np File "F:\Magic Quill\magicquill\venv\Lib\site-packages\numpy\__init__.py", line 149, in raise ImportError(msg) from e ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch
2025-03-27 19:11

Jose Avendaño

Runpod is not working for magicquill root@d6eb894953d3:/workspace# cd /workspace cd magicquill export PYTHONWARNINGS="ignore" source venv/bin/activate export HF_HUB_ENABLE_HF_TRANSFER=1 export CUDA_VISIBLE_DEVICES=0 cloudflared tunnel --url http://127.0.0.1:7860 & sleep 5 && python3 gradio_run.py [1] 2718 2025-06-08T19:54:50Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee, are subject to the Cloudflare Online Services Terms of Use (https://www.cloudflare.com/website-terms/), and Cloudflare reserves the right to investigate your use of Tunnels for violations of such terms. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps 2025-06-08T19:54:50Z INF Requesting new quick Tunnel on trycloudflare.com... 2025-06-08T19:54:56Z INF +--------------------------------------------------------------------------------------------+ 2025-06-08T19:54:56Z INF | Your quick Tunnel has been created! Visit it at (it may take some time to be reachable): | 2025-06-08T19:54:56Z INF | https://ave-dramatically-hormone-prerequisite.trycloudflare.com | 2025-06-08T19:54:56Z INF +--------------------------------------------------------------------------------------------+ 2025-06-08T19:54:56Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared] 2025-06-08T19:54:56Z INF Version 2025.5.0 (Checksum a62266fd02041374f1fca0d85694aafdf7e26e171a314467356b471d4ebb2393) 2025-06-08T19:54:56Z INF GOOS: linux, GOVersion: go1.22.10, GoArch: amd64 2025-06-08T19:54:56Z INF Settings: map[ha-connections:1 protocol:quic url:http://127.0.0.1:7860] 2025-06-08T19:54:56Z INF cloudflared will not automatically update when run from the shell. To enable auto-updates, run cloudflared as a service: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configure-tunnels/local-management/as-a-service/ 2025-06-08T19:54:56Z INF Generated Connector ID: 945fd507-16fc-433f-98e9-ee199887fc1e 2025-06-08T19:54:56Z INF Initial protocol quic 2025-06-08T19:54:56Z INF ICMP proxy will use 172.24.0.2 as source for IPv4 2025-06-08T19:54:56Z INF ICMP proxy will use ::1 in zone lo as source for IPv6 2025-06-08T19:54:56Z WRN The user running cloudflared process has a GID (group ID) that is not within ping_group_range. You might need to add that user to a group within that range, or instead update the range to encompass a group the user is already in by modifying /proc/sys/net/ipv4/ping_group_range. Otherwise cloudflared will not be able to ping this network error="Group ID 0 is not between ping group 65534 to 65534" 2025-06-08T19:54:56Z WRN ICMP proxy feature is disabled error="cannot create ICMPv4 proxy: Group ID 0 is not between ping group 65534 to 65534 nor ICMPv6 proxy: socket: permission denied" 2025-06-08T19:54:56Z INF ICMP proxy will use 172.24.0.2 as source for IPv4 2025-06-08T19:54:56Z INF ICMP proxy will use ::1 in zone lo as source for IPv6 2025-06-08T19:54:56Z INF Starting metrics server on 127.0.0.1:20244/metrics 2025-06-08T19:54:56Z INF Tunnel connection curve preferences: [CurveID(4588) CurveID(25497) CurveP256] connIndex=0 event=0 ip=198.41.192.27 2025/06/08 19:54:56 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details. 2025-06-08T19:54:56Z INF Registered tunnel connection connIndex=0 connection=294fe6a9-c0a3-46b5-b59d-30a20fc7f3f1 event=0 ip=198.41.192.27 location=prg03 protocol=quic Total VRAM 24135 MB, total RAM 1031882 MB pytorch version: 2.1.2+cu118 xformers version: 0.0.23.post1+cu118 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3090 : native Using xformers cross attention ['/workspace/magicquill', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/workspace/magicquill/venv/lib/python3.10/site-packages', '__editable__.llava-1.2.2.post1.finder.__path_hook__', '/workspace/magicquill/MagicQuill'] Traceback (most recent call last): File "/workspace/magicquill/venv/lib/python3.10/site-packages/transformers/utils/hub.py", line 385, in cached_file resolved_file = hf_hub_download( File "/workspace/magicquill/venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 106, in _inner_fn validate_repo_id(arg_value) File "/workspace/magicquill/venv/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 154, in validate_repo_id raise HFValidationError( huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/workspace/magicquill/models/llava-v1.5-7b-finetune-clean'. Use `repo_type` argument if needed. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/workspace/magicquill/gradio_run.py", line 24, in llavaModel = LLaVAModel() File "/workspace/magicquill/MagicQuill/llava_new.py", line 26, in __init__ self.tokenizer, self.model, self.image_processor, self.context_len = load_pretrained_model( File "/workspace/magicquill/MagicQuill/LLaVA/llava/model/builder.py", line 116, in load_pretrained_model tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=False) File "/workspace/magicquill/venv/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 758, in from_pretrained tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs) File "/workspace/magicquill/venv/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 590, in get_tokenizer_config resolved_config_file = cached_file( File "/workspace/magicquill/venv/lib/python3.10/site-packages/transformers/utils/hub.py", line 450, in cached_file raise EnvironmentError( OSError: Incorrect path_or_model_id: '/workspace/magicquill/models/llava-v1.5-7b-finetune-clean'. Please provide either the path to a local folder or the repo_id of a model on the Hub. (venv) root@d6eb894953d3:/workspace/magicquill# 2025-06-08T19:56:06Z ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 127.0.0.1:7860: connect: connection refused" connIndex=0 event=1 ingressRule=0 originService=http://127.0.0.1:7860 2025-06-08T19:56:06Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 127.0.0.1:7860: connect: connection refused" connIndex=0 dest=https://ave-dramatically-hormone-prerequisite.trycloudflare.com/ event=0 ip=198.41.192.27 type=http 2025-06-08T19:56:06Z ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 127.0.0.1:7860: connect: connection refused" connIndex=0 event=1 ingressRule=0 originService=http://127.0.0.1:7860 2025-06-08T19:56:06Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 127.0.0.1:7860: connect: connection refused" connIndex=0 dest=https://ave-dramatically-hormone-prerequisite.trycloudflare.com/favicon.ico event=0 ip=198.41.192.27 type=http

Jose Avendaño

Sure, let me know. What is weird is that i ran it the first time and then i decided to use a better GPU and do the same process and it didnt work anymore

Jose Avendaño

It is working now on runpod with RTX 4090

Jose Avendaño

Now it says this: CUDA out of memory. Tried to allocate 64.00 MiB. GPU 0 has a total capacty of 23.64 GiB of which 36.81 MiB is free. Process 939374 has 23.60 GiB memory in use. Of the allocated memory 22.68 GiB is allocated by PyTorch, and 432.22 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Beepbooperson

Tested and confirmed it works. Thanks for the update