├── README.md └── Resources ├── Start-ComfyUI-DirectML.bat ├── Start-ComfyUI.bat └── Start-FluxGym.bat /README.md: -------------------------------------------------------------------------------- 1 | # Stable-Diffusion-Info 2 | Stable Diffusion Knowledge Base (Setups, Basics, Guides and more) 3 | 4 | On this Site you'll find everything you need to know about Stable Diffusion Webui's and their usage! 5 | 6 | ## Guides: ## 7 | [Webui Installation Guides](https://github.com/CS1o/Stable-Diffusion-Info/wiki/Webui-Installation-Guides)
8 | [Lora Trainer Setup Guides](https://github.com/CS1o/Stable-Diffusion-Info/wiki/Lora-Trainer-Setup-Guides)
9 | [Other Setups] 10 | 11 | 12 | ## Support Me:
13 | If i helped you on Discord or you find my Wiki-Guides helpfull, 14 | feel free to donate by clicking on the Ko-Fi Mug below
15 |
16 | Buy Me A Coffee

17 | I appreciate it! ☕ 18 | -------------------------------------------------------------------------------- /Resources/Start-ComfyUI-DirectML.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM Check if venv directory exists 3 | IF NOT EXIST "venv" ( 4 | echo Creating virtual environment... 5 | python -m venv venv 6 | 7 | REM Activate the virtual environment 8 | echo Activating virtual environment... 9 | call venv\Scripts\activate 10 | 11 | REM Upgrade pip to the latest version 12 | echo Upgrading pip... 13 | python -m pip install --upgrade pip 14 | 15 | REM Install dependencies from requirements.txt 16 | IF EXIST "requirements.txt" ( 17 | echo Installing dependencies from requirements.txt... 18 | pip install -r requirements.txt 19 | ) ELSE ( 20 | echo requirements.txt not found. Skipping dependency installation. 21 | ) 22 | 23 | REM Install torch-directml 24 | echo Installing torch-directml... 25 | pip install torch-directml 26 | ) ELSE ( 27 | REM Activate the virtual environment 28 | echo Activating virtual environment... 29 | call venv\Scripts\activate 30 | ) 31 | 32 | REM Run the main.py script with --auto-launch --directml argument 33 | echo Running main.py with --auto-launch --directml --use-quad-cross-attention arguments... 34 | python main.py --auto-launch --directml --use-quad-cross-attention 35 | 36 | REM Deactivate the virtual environment 37 | echo Deactivating virtual environment... 38 | deactivate 39 | -------------------------------------------------------------------------------- /Resources/Start-ComfyUI.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM Check if venv directory exists 3 | IF NOT EXIST "venv" ( 4 | echo Creating virtual environment... 5 | python -m venv venv 6 | 7 | REM Activate the virtual environment 8 | echo Activating virtual environment... 9 | call venv\Scripts\activate 10 | 11 | REM Upgrade pip to the latest version 12 | echo Upgrading pip... 13 | python -m pip install --upgrade pip 14 | 15 | REM Install dependencies from requirements.txt 16 | IF EXIST "requirements.txt" ( 17 | echo Installing dependencies from requirements.txt... 18 | pip install -r requirements.txt 19 | ) ELSE ( 20 | echo requirements.txt not found. Skipping dependency installation. 21 | ) 22 | 23 | REM Install torch, torchvision, and torchaudio with specific index URL 24 | echo Installing torch, torchvision, and torchaudio... 25 | pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu118 26 | ) ELSE ( 27 | REM Activate the virtual environment 28 | echo Activating virtual environment... 29 | call venv\Scripts\activate 30 | ) 31 | 32 | REM Run the main.py script with --auto-launch argument 33 | echo Running main.py with --auto-launch --disable-xformers --use-quad-cross-attention --reserve-vram arguments... 34 | python main.py --auto-launch --disable-xformers --use-quad-cross-attention --reserve-vram 0.8 35 | 36 | REM Deactivate the virtual environment 37 | echo Deactivating virtual environment... 38 | deactivate 39 | -------------------------------------------------------------------------------- /Resources/Start-FluxGym.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM Check if virtual environment exists 3 | IF NOT EXIST "venv\" ( 4 | echo Creating virtual environment... 5 | python -m venv venv 6 | 7 | echo Activating virtual environment... 8 | call venv\Scripts\activate 9 | 10 | echo Installing requirements in sd-scripts... 11 | cd sd-scripts 12 | pip install -r requirements.txt 13 | 14 | echo Installing root requirements... 15 | cd .. 16 | pip install -r requirements.txt 17 | 18 | echo Installing specific PyTorch version... 19 | pip install torch==2.3.1 torchvision --index-url https://download.pytorch.org/whl/cu118 20 | ) ELSE ( 21 | echo Virtual environment already exists. Skipping setup... 22 | call venv\Scripts\activate 23 | ) 24 | 25 | REM Launch the application 26 | echo Launching FluxGym... 27 | echo (If you dont see the UI, reload the Browserpage) 28 | start "" /B python app.py 29 | 30 | REM Wait a bit then open browser 31 | timeout /t 10 >nul 32 | start http://127.0.0.1:7860 33 | --------------------------------------------------------------------------------