Singularity - A UI for Shadowbox
Tip
-
Download Python
-
- Install for All Users
- Add python.exe to Path
-
cmd /k where python && pause -
Download Git
-
- Git LFS (Large File Support)
-
- Git from the command line and also from 3rd-party software.
-
- Use Windows' default console window
-
cmd /k where git && pause -
While the terminal window is open, change the behavior of Command Prompt so it does not freeze when clicked:
- QuickEdit Mode
Please continue your installation by following the python instructions
Though more AI components are supporte by WSL, these benefits may not compensate for the performance loss of WSL. For the best experience, we recommend using Windows Manual Install instructions.
-
powershell New-NetFirewallRule -Program “%SystemRoot%\System32\wsl.exe” -Action Allow -Profile Domain, Private -DisplayName “Allow WSL” > -Description “Allow WSL” -Direction Outbound -
powershell Set-ProcessMitigation -Name vmcompute.exe -Enable CFG -
-
wsl --install -d Ubuntu --web-download -
wsl -
sudo apt-get -y install python3 python3-venv python3-pip git -
Dedicate more system RAM by making a .wslconfig file. Follow these instructions from Microsoft
-
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-keyring_1.1-1_all.debOR
-
sudo 'echo "http://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 /" > /etc/apt/sources.list.d/cuda.list' -
sudo dpkg -i cuda-keyring_1.1-1_all.deb -
sudo apt-get -y install cuda-toolkit-12-5
Please continue your Windows Subsystem for Linux installation by following the linux instructions
-
-
Homebrew users can open
Terminaland enter:
brew install pythonthen follow the Python instructions.
-
App Store users - Install Xcode
-
-
xcode-select --install -
Follow the Python instructions
Note
sudo apt-get -y update & sudo apt-get -y upgrade
sudo dnf update & sudo dnf upgrade
sudo pacman -Syu
Important
Do not use the same virtual environment as an existing ComfyUI installation.
Tip
We recommend running this command from an easy to remember location while avoiding /home, /Program Files, /Windows, and other protected directories.
python3 -m venv .venv
-
.venv\Scripts\activatesource .venv/bin/activate -
pip3 install torch==2.3.0+cu121 torchvision torchaudio --index-url=https://download.pytorch.org/whl/cu121pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0pip install torch-directmlpip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
-
Once PyTorch and Friends are installed, run this command to install Shadowbox to your current directory.
git clone https://github.com/darkshapes/sdbx.gitAnticipated functionality of ComfyUI will also allow you to run Singularity from command line.
-
cd sdbx pip install -r <(sed '/^[torch|torchaudio]/d' requirements.txt) -
[07/16/24 Hotfix] Remove
/comfy/webfolder, then place these folders inside the/sdbxroot directory singularity-20240716.zip -
python main.py --output-directory /YOUR_FOLDER_NAME --input-directory /YOUR_FOLDER_NAME/inputpython main.py --directml --output-directory /YOUR_FOLDER_NAME --input-directory /YOUR_FOLDER_NAME/inputpython main.py --force-fp16 --output-directory /YOUR_FOLDER_NAME --input-directory /YOUR_FOLDER_NAME/input -
Open your browser to 127.0.0.1:8188
- Linux/WSL Developer Notes
-
pip install packaging wheel ninja -
pip install xformers==0.0.26.post1 -
pip install flash-attn --no-build-isolation
Lets create a more inviting and visually-pleasing ComfyUI using Typescript and ReactFlow!

