Allor Documentation v.2 Help

Installation ComfyUI

Before installing Allor, you need to have Python and ComfyUI installed.

How to get ComfyUI

For Windows systems, you can download portable version and go straight to the Allor installation step.

Also, you can get ComfyUI from a direct download link.

And finally, you can get ComfyUI using Git by typing this command into the terminal.

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

    How to get Python

    Python comes preinstalled on most Linux distributions, and is available as a package on all others.

    • You can check if Python is installed on your system from the terminal with the following command:

      python3 --version

    If Python is not installed on your system, you can also install it via the terminal.

    • For Arch Linux

      pacman -S python
    • For macOS with Homebrew

      brew install python

    On macOS, you can also download the Python installer from the official site.

      On Windows systems, you can get Python in a number of ways.

      • The easiest way to install Python for Windows is to download it from the official site.

      • You can also install Python using the Microsoft Store.

      • Through Powershell you can install it by Windows Package Manager.

        winget install python
      • And finally, you will be able to install Python through the terminal using Chocolatey.

        choco install python

      After installation, you need to verify that Python is running correctly.

      • Open the terminal and type this command:

        python3 --version

      You can do this by pressing Win+R and typing cmd.

        Setup Python Environment

        Of course, you can skip this step and go straight to installing the dependencies, but I still recommend you create a virtual environment specifically for ComfyUI.

        This will allow you to create an isolated space that has its own independent set of installed Python packages.

        This will prevent a system pollution, eliminate dependency conflicts, and exclude the possibility of other projects affecting the operation of ComfyUI.

        See how to Work with Terminal.

        1. Open Terminal: Navigate to the ComfyUI root directory.

        2. Create Virtual Environment: You can do it by typing the following command.

          python -m venv
        3. Activate new Environment: You can do this by writing this command to your terminal.

          source venv/bin/activate

          See how to Work with Terminal.

          1. Open Command Prompt: Navigate to the ComfyUI root folder.

          2. Create Virtual Environment: You can do it by typing the following command.

            python -m venv
          3. Activate new Environment: You can do this by writing this command to your terminal.

            .\venv\Scripts\activate

            After activating the virtual environment, all commands applicable to Python will be intercepted. This means that they will use the Python version from the virtual environment, not the system version.

            It's also worth noting that the Python version in the virtual environment may differ from the system one, as well as the installed packages.

            If you need to return to the system Python version and exit the virtual environment, enter this command:

            deactivate

            Install Dependencies

            One of the most important steps in installing ComfyUI is installing dependencies.

            Dependencies are external modules or libraries that ComfyUI uses to perform its functions.

            See how to Work with Terminal.

            1. Open Terminal: Navigate to the ComfyUI root directory.

            2. Install PyTorch Dependencies:

              • For AMD:

                pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.6
              • For NVIDIA:

                pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
              • For Apple Mac silicon:

                pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
            3. Install ComfyUI Dependencies: You can install it by typing the following command.

              pip install -r requirements.txt

              See how to Work with Terminal.

              1. Open Command Prompt: Navigate to the ComfyUI root folder.

              2. Install PyTorch Dependencies:

                • For AMD:

                  pip install torch-directml
                • For NVIDIA:

                  pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
              3. Install ComfyUI Dependencies: You can install it by typing the following command.

                pip install -r requirements.txt

                Run ComfyUI

                The hardest part is behind, now you can launch ComfyUI and start generating your first images.

                See how to Work with Terminal.

                1. Type into Terminal: Now you can finally run ComfyUI by following command.

                  • Run on Linux:

                    python main.py
                  • Run on macOS:

                    python main.py --force-fp16
                2. For your convenience, you can create a bash script, such as a run.sh file, to avoid manually activating the virtual environment and running ComfyUI from the terminal each time you want to use it.

                  #!/bin/bash source venv/bin/activate if [[ "$OSTYPE" == "linux-gnu"* ]]; then python main.py elif [[ "$OSTYPE" == "darwin"* ]]; then python main.py --force-fp16 fi
                3. After creating a script file, you can run it by command:

                  bash run.sh

                  See how to Work with Terminal.

                  1. Open Command Prompt: Now you can finally run ComfyUI by following command.

                    • Run on AMD:

                      python main.py --directml
                    • Run on NVIDIA:

                      python main.py
                  2. For your convenience, you can create a script, such as a run.bat file, to avoid manually activating the virtual environment and running ComfyUI from the terminal each time you want to use it.

                  @echo off call .\venv\Scripts\activate python main.py
                  @echo off call .\venv\Scripts\activate python main.py --directml

                    After launching ComfyUI, it will be accessible at the local address 127.0.0.1:8188 in your browser.

                    Last modified: 04 December 2023