Digital Product Studio

Easy Installation Guide to Get Started With MagicQuill AI Image Editor

MagicQuill is an advanced, interactive AI image editing system that is gaining popularity as a free alternative to Photoshop due to its advanced AI capabilities. It empowers users to manipulate the images with precision and ease. To get the full details on this tool and its key features, check out our detailed blog post here. For now, we will explore how to install and use MagicQuill both locally and with ComfyUI.

The local installation method will guide you through the process of setting up MagicQuill directly on your system using Python, Git, and the necessary dependencies, providing you with complete control over the installation and configuration. On the other hand, ComfyUI integration will help you install MagicQuill as a custom node within ComfyUI, a powerful modular diffusion model interface. This integration allows you to leverage MagicQuill’s capabilities within the ComfyUI workflow environment. So, let’s get started!

Step-By-Step Installation of MagicQuill AI Image Editor Locally

Prerequisites:

1. Git: Ensure Git is installed on your system.

2. Miniconda: Ensure Miniconda is installed. If not, follow the installation instructions from the official Miniconda website.

3. CUDA Drivers: Ensure you have the appropriate CUDA drivers installed for your GPU.

Step 1: Clone the Repository

Open your command prompt or terminal. Navigate to the directory where you want to install MagicQuill. 

Step-by-step installation of MagicQuill AI Image Editor Locally

Run the following command to clone the repository:

git clone --recursive https://github.com/magic-quill/MagicQuill.git

Step-by-step installation of MagicQuill AI Image Editor Locally

Step 2: Download Checkpoints

Navigate to the magic-quill directory:

cd MagicQuill

Download the checkpoints using the following command:

For Windows:

curl -o models.zip "https://hkustconnect-my.sharepoint.com/:u:/g/personal/zliucz_connect_ust_hk/EWlGF0WfawJIrJ1Hn85_-3gB0MtwImAnYeWXuleVQcukMg?e=Gcjugg&download=1"

For Linux

wget -O models.zip "https://hkustconnect-my.sharepoint.com/:u:/g/personal/zliucz_connect_ust_hk/EWlGF0WfawJIrJ1Hn85_-3gB0MtwImAnYeWXuleVQcukMg?e=Gcjugg&download=1"

Step 3: Unzip the Checkpoints

Unzip the downloaded models.zip file. You can do this manually by right-clicking the file and selecting “Extract Here” or using a command in the terminal:

unzip models.zip

Step-By-Step Installation of MagicQuill AI Image Editor Locally
Step-by-step installation of MagicQuill AI Image Editor Locally

Step 4: Set Up the Virtual Environment

  • Create a virtual environment using Miniconda:

conda create -n magic-quill python=3.10 -y

  • Activate the virtual environment:

conda activate magic-quill

Step 5: Install the CUDA Toolkit

Install the CUDA toolkit:

conda install -c nvidia cudatoolkit=11.8 -y

Step 6: Install Torch and Dependencies

Install Torch, TorchVision, and TorchAudio with CUDA support:

pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu118

Step 7: Install Gradio Interface

Install the Gradio interface:

pip install gradio_magicquill-0.0.1-py3-none-any.whl

Step 8: Install LAVA Environment

For Linux

cp -f pyproject.toml MagicQuill/LLaVA/

pip install -e MagicQuill/LLaVA/

For Windows

copy /Y pyproject.toml MagicQuill\LLaVA\

pip install -e MagicQuill\LLaVA\

Step 9: Install Remaining Dependencies

Install the remaining dependencies:

pip install -r requirements.txt

Step 10: Run MagicQuill

Run the MagicQuill application:

python gradio_run.py

Step-by-step installation of MagicQuill AI Image Editor Locally

Open the provided URL in your browser to access the MagicQuill interface. 

Step-By-Step Installation of MagicQuill AI Image Editor Locally
Ready-to-Use MagicQuill AI After Installation

Step 11: Use MagicQuill

Now, you can use the MagicQuill to edit your images as you want. Upload the image, use the brushes to add or edit anything following the prompt and click on the Run button. It will generate the desired output, which you can save easily.

Step-By-Step Installation of MagicQuill AI Image Editor Locally
Editing Image on MagicQuill

Step-by-Step Installation of MagicQuill AI Using ComfyUI

Step 1: Prerequisites

Before starting the installation, ensure you have the following:

  • A working installation of ComfyUI.
  • Basic knowledge of command-line operations.
  • Python and Git installed on your system.

Step 2: Setting Up ComfyUI

You first need to install ComfyUI. You can do it both manually and portably.

Method 1: Manual Installation

1. Open your terminal and clone the ComfyUI repository:

git clone https://github.com/comfyanonymous/ComfyUI.git

2. Navigate to the ComfyUI directory:

cd ComfyUI

3. Create a virtual environment:

python -m venv venv

4. Activate the virtual environment:

On Windows:

.\venv\Scripts\activate

On macOS/Linux:

source venv/bin/activate

5. Install the required dependencies:

pip install -r requirements.txt

Method 2: Portable Installation

  • Download the portable version from the ComfyUI GitHub repository.
  • Extract the downloaded file and put it in a folder named ComfyUI_portable.

Step 3: Installing MagicQuill

1. Clone the MagicQuill Repository

  • Navigate to the custom_nodes directory within your ComfyUI installation:

cd ComfyUI/custom_nodes

  • Clone the MagicQuill repository:

git clone https://github.com/magicquill/magicquill.git

2. Download and Extract Models

Download the models’ zip file from this link. Extract the contents of the zip file into the ComfyUI/models directory.

3. Install MagicQuill Dependencies

  • Navigate to the comfy_magicquill directory:

cd comfy_magicquill

  • Run the installation script:

python install.py

  • Install additional requirements:

pip install -r requirements.txt

Step 4: Running MagicQuill

Next, create a batch file for easy access. To do that, create a new text file and name it run_magicquill.bat. Add the following commands to the file:

cd ComfyUI

call venv\Scripts\activate

python main.py

Save the file and run it to start MagicQuill.

Step 5: Using MagicQuill

1. Open ComfyUI

Run the run_magicquill.bat file to open ComfyUI with MagicQuill integrated.

2. Load MagicQuill Workflow

In ComfyUI, go to Workflow > Open.

Navigate to custom_nodes/comfy_magicquill and select magicquill.json.

3. Start Editing

Use the MagicQuill tools to edit your images as desired.

You can also check this video to learn how to use MagicQuill in ComfyUI

Step-by-Step Installation of MagicQuill AI Using ComfyUI
Step-by-Step Installation of MagicQuill AI Using ComfyUI

Now, with all the above steps done, you have successfully installed MagicQuill AI Image Editor with ComfyUI.

Elevate Your Image Editing Journey Today!

By following the methods outlined in this article, you can use the power of this intelligent interactive AI system to enhance your creative projects with ease and precision. Whether you choose to set it up locally for a more personalized experience or integrate it with ComfyUI for seamless workflow management, MagicQuill stands out as a versatile tool that rivals traditional software like Photoshop. As you explore its features and capabilities, you’ll find that MagicQuill simplifies the editing process and elevates your artistic expression to new heights. 

| Latest From Us

SUBSCRIBE TO OUR NEWSLETTER

Stay updated with the latest news and exclusive offers!


* indicates required
Picture of Faizan Ali Naqvi
Faizan Ali Naqvi

Research is my hobby and I love to learn new skills. I make sure that every piece of content that you read on this blog is easy to understand and fact checked!

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

Don't Miss Out on AI Breakthroughs!

Advanced futuristic humanoid robot

*No spam, no sharing, no selling. Just AI updates.