Upload ComfyUI-AllinOne-Auto_install.bat
Browse files
ComfyUI-AllinOne-Auto_install.bat
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal enabledelayedexpansion
|
| 3 |
+
|
| 4 |
+
:CHOOSE_OPTION
|
| 5 |
+
REM Ask user for installation type
|
| 6 |
+
echo [33mChoose your preferred installation:[0m
|
| 7 |
+
echo [32mA) Fast-Lowvram install[0m
|
| 8 |
+
echo [32mB) Unoptimized normal model[0m
|
| 9 |
+
set /p "CHOICE=Enter your choice (A or B) and press Enter: "
|
| 10 |
+
|
| 11 |
+
if /i "%CHOICE%"=="A" (
|
| 12 |
+
set "INSTALL_TYPE=fast-lowvram"
|
| 13 |
+
) else if /i "%CHOICE%"=="B" (
|
| 14 |
+
set "INSTALL_TYPE=unoptimized"
|
| 15 |
+
) else (
|
| 16 |
+
echo [31mInvalid choice. Please enter A or B.[0m
|
| 17 |
+
goto CHOOSE_OPTION
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
:CHOOSE_FLUX_SCHNELL
|
| 21 |
+
REM Ask user if they want to download FLUX SCHNELL Model
|
| 22 |
+
echo [33mDo you want to download the FLUX SCHNELL Model?[0m
|
| 23 |
+
echo [32mA) Yes[0m
|
| 24 |
+
echo [32mB) No[0m
|
| 25 |
+
set /p "FLUX_SCHNELL_CHOICE=Enter your choice (A or B) and press Enter: "
|
| 26 |
+
|
| 27 |
+
if /i "%FLUX_SCHNELL_CHOICE%"=="A" (
|
| 28 |
+
set "DOWNLOAD_FLUX_SCHNELL=yes"
|
| 29 |
+
) else if /i "%FLUX_SCHNELL_CHOICE%"=="B" (
|
| 30 |
+
set "DOWNLOAD_FLUX_SCHNELL=no"
|
| 31 |
+
) else (
|
| 32 |
+
echo [31mInvalid choice. Please enter A or B.[0m
|
| 33 |
+
goto CHOOSE_FLUX_SCHNELL
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
:CHOOSE_FLUX_GGUF
|
| 37 |
+
REM Ask user if they want to download FLUX GGUF Model
|
| 38 |
+
echo [33mDo you want to download FLUX GGUF Models?[0m
|
| 39 |
+
echo [32mA) Q8_0 + T5_Q8 (24GB Vram)[0m
|
| 40 |
+
echo [32mB) Q5_K_S + T5_Q5_K_M (16GB Vram)[0m
|
| 41 |
+
echo [32mC) Q4_K_S + T5_Q3_K_L (less than 12GB Vram)[0m
|
| 42 |
+
echo [32mD) All[0m
|
| 43 |
+
echo [32mE) No[0m
|
| 44 |
+
set /p "FLUX_GGUF_CHOICE=Enter your choice (A,B,C,D or E) and press Enter: "
|
| 45 |
+
|
| 46 |
+
if /i "%FLUX_GGUF_CHOICE%"=="A" (
|
| 47 |
+
set "DOWNLOAD_GGUF=yes"
|
| 48 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
|
| 49 |
+
set "DOWNLOAD_GGUF=yes"
|
| 50 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
|
| 51 |
+
set "DOWNLOAD_GGUF=yes"
|
| 52 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
|
| 53 |
+
set "DOWNLOAD_GGUF=yes"
|
| 54 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="E" (
|
| 55 |
+
set "DOWNLOAD_GGUF=no"
|
| 56 |
+
) else (
|
| 57 |
+
echo [31mInvalid choice. Please enter A or B.[0m
|
| 58 |
+
goto CHOOSE_FLUX_GGUF
|
| 59 |
+
)
|
| 60 |
+
|
| 61 |
+
:CHOOSE_FLUX_CONTROLNET
|
| 62 |
+
REM Ask user if they want to download FLUX SCHNELL Model
|
| 63 |
+
echo [33mDo you want to download ControlNet V3 Models?[0m
|
| 64 |
+
echo [32mA) Yes[0m
|
| 65 |
+
echo [32mB) No[0m
|
| 66 |
+
set /p "FLUX_CONTROLNET_CHOICE=Enter your choice (A or B) and press Enter: "
|
| 67 |
+
|
| 68 |
+
if /i "%FLUX_CONTROLNET_CHOICE%"=="A" (
|
| 69 |
+
set "DOWNLOAD_FLUX_CONTROLNET=yes"
|
| 70 |
+
) else if /i "%FLUX_CONTROLNET_CHOICE%"=="B" (
|
| 71 |
+
set "DOWNLOAD_FLUX_CONTROLNET=no"
|
| 72 |
+
) else (
|
| 73 |
+
echo [31mInvalid choice. Please enter A or B.[0m
|
| 74 |
+
goto CHOOSE_FLUX_CONTROLNET
|
| 75 |
+
)
|
| 76 |
+
|
| 77 |
+
:CHOOSE_FLUX_LORA
|
| 78 |
+
REM Ask user if they want to download FLUX LORA
|
| 79 |
+
echo [33mDo you want to download UmeAiRT LoRAs?[0m
|
| 80 |
+
echo [32mA) Yes[0m
|
| 81 |
+
echo [32mB) No[0m
|
| 82 |
+
set /p "FLUX_LORA_CHOICE=Enter your choice (A or B) and press Enter: "
|
| 83 |
+
|
| 84 |
+
if /i "%FLUX_LORA_CHOICE%"=="A" (
|
| 85 |
+
set "DOWNLOAD_FLUX_LORA=yes"
|
| 86 |
+
) else if /i "%FLUX_LORA_CHOICE%"=="B" (
|
| 87 |
+
set "DOWNLOAD_FLUX_LORA=no"
|
| 88 |
+
) else (
|
| 89 |
+
echo [31mInvalid choice. Please enter A or B.[0m
|
| 90 |
+
goto CHOOSE_FLUX_LORA
|
| 91 |
+
)
|
| 92 |
+
|
| 93 |
+
REM Check if 7-Zip is installed and get its path
|
| 94 |
+
for %%I in (7z.exe) do set "SEVEN_ZIP_PATH=%%~$PATH:I"
|
| 95 |
+
if not defined SEVEN_ZIP_PATH (
|
| 96 |
+
if exist "%ProgramFiles%\7-Zip\7z.exe" (
|
| 97 |
+
set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
|
| 98 |
+
) else if exist "%ProgramFiles(x86)%\7-Zip\7z.exe" (
|
| 99 |
+
set "SEVEN_ZIP_PATH=%ProgramFiles(x86)%\7-Zip\7z.exe"
|
| 100 |
+
) else (
|
| 101 |
+
echo 7-Zip is not installed. Downloading and installing...
|
| 102 |
+
curl -L -o 7z-installer.exe https://www.7-zip.org/a/7z2201-x64.exe
|
| 103 |
+
7z-installer.exe /S
|
| 104 |
+
set "SEVEN_ZIP_PATH=%ProgramFiles%\7-Zip\7z.exe"
|
| 105 |
+
if not exist "%SEVEN_ZIP_PATH%" (
|
| 106 |
+
echo Installation of 7-Zip failed. Please install it manually and try again.
|
| 107 |
+
exit /b 1
|
| 108 |
+
)
|
| 109 |
+
del 7z-installer.exe
|
| 110 |
+
)
|
| 111 |
+
)
|
| 112 |
+
|
| 113 |
+
REM Check and install Git
|
| 114 |
+
git --version > NUL 2>&1
|
| 115 |
+
if %errorlevel% NEQ 0 (
|
| 116 |
+
echo Installing Git...
|
| 117 |
+
powershell -Command "& {Invoke-WebRequest -Uri 'https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.3/Git-2.41.0.3-64-bit.exe' -OutFile 'Git-2.41.0.3-64-bit.exe'; if ($LASTEXITCODE -ne 0) { exit 1 }}"
|
| 118 |
+
if %errorlevel% NEQ 0 (
|
| 119 |
+
echo Failed to download Git installer.
|
| 120 |
+
exit /b
|
| 121 |
+
)
|
| 122 |
+
start /wait Git-2.41.0.3-64-bit.exe /VERYSILENT
|
| 123 |
+
del Git-2.41.0.3-64-bit.exe
|
| 124 |
+
) else (
|
| 125 |
+
echo Git already installed.
|
| 126 |
+
)
|
| 127 |
+
|
| 128 |
+
REM Download ComfyUI
|
| 129 |
+
echo [33mDownloading ComfyUI...[0m
|
| 130 |
+
curl -L -o ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z https://github.com/comfyanonymous/ComfyUI/releases/download/latest/ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z
|
| 131 |
+
|
| 132 |
+
REM Extract ComfyUI
|
| 133 |
+
echo Extracting ComfyUI...
|
| 134 |
+
"%SEVEN_ZIP_PATH%" x ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z -o"%CD%" -y
|
| 135 |
+
|
| 136 |
+
REM Check if extraction was successful
|
| 137 |
+
if not exist "ComfyUI_windows_portable" (
|
| 138 |
+
echo Extraction failed. Please check the downloaded file and try again.
|
| 139 |
+
exit /b 1
|
| 140 |
+
)
|
| 141 |
+
|
| 142 |
+
REM Navigate to custom_nodes folder
|
| 143 |
+
cd ComfyUI_windows_portable\ComfyUI\custom_nodes
|
| 144 |
+
|
| 145 |
+
REM Clone ComfyUI-Manager
|
| 146 |
+
echo [33mCloning ComfyUI-Manager...[0m
|
| 147 |
+
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
|
| 148 |
+
|
| 149 |
+
REM Navigate to models folder
|
| 150 |
+
cd ..\models
|
| 151 |
+
|
| 152 |
+
REM Download VAE file
|
| 153 |
+
echo [33mDownloading VAE file...[0m
|
| 154 |
+
cd vae
|
| 155 |
+
curl -L -o ae.safetensors https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/ae.safetensors?download=true
|
| 156 |
+
|
| 157 |
+
cd ..
|
| 158 |
+
|
| 159 |
+
REM Download CLIP files
|
| 160 |
+
echo [33mDownloading CLIP files...[0m
|
| 161 |
+
cd clip
|
| 162 |
+
curl -L -o clip_l.safetensors https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/clip_l.safetensors?download=true
|
| 163 |
+
curl -L -o t5xxl_fp8_e4m3fn.safetensors https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/t5xxl_fp8_e4m3fn.safetensors?download=true
|
| 164 |
+
curl -L -o t5xxl_fp16.safetensors https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/t5xxl_fp16.safetensors?download=true
|
| 165 |
+
curl -L -o ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors https://huggingface.co/zer0int/CLIP-GmP-ViT-L-14/resolve/main/ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors?download=true
|
| 166 |
+
|
| 167 |
+
if "%DOWNLOAD_GGUF%"=="yes" (
|
| 168 |
+
echo [33mDownloading FLUX GGUF encoder Model...[0m
|
| 169 |
+
if /i "%FLUX_GGUF_CHOICE%"=="A" (
|
| 170 |
+
curl -L -o t5-v1_1-xxl-encoder-Q8_0.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q8_0.gguf?download=true
|
| 171 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
|
| 172 |
+
curl -L -o t5-v1_1-xxl-encoder-Q5_K_M.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q5_K_M.gguf?download=true
|
| 173 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
|
| 174 |
+
curl -L -o t5-v1_1-xxl-encoder-Q3_K_L.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q3_K_L.gguf?download=true
|
| 175 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
|
| 176 |
+
curl -L -o t5-v1_1-xxl-encoder-Q8_0.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q8_0.gguf?download=true
|
| 177 |
+
curl -L -o t5-v1_1-xxl-encoder-Q5_K_M.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q5_K_M.gguf?download=true
|
| 178 |
+
curl -L -o t5-v1_1-xxl-encoder-Q3_K_L.gguf https://huggingface.co/city96/t5-v1_1-xxl-encoder-gguf/resolve/main/t5-v1_1-xxl-encoder-Q3_K_L.gguf?download=true
|
| 179 |
+
)
|
| 180 |
+
)
|
| 181 |
+
cd ..
|
| 182 |
+
|
| 183 |
+
REM Download UNET file based on user choice
|
| 184 |
+
echo [33mDownloading UNET file...[0m
|
| 185 |
+
cd unet
|
| 186 |
+
if "%INSTALL_TYPE%"=="fast-lowvram" (
|
| 187 |
+
curl -L -o flux1-dev-fp8.safetensors https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/flux1-dev-fp8.safetensors?download=true
|
| 188 |
+
) else (
|
| 189 |
+
curl -L -o flux1-dev.sft https://huggingface.co/Aitrepreneur/FLX/resolve/main/flux1-dev.sft?download=true
|
| 190 |
+
)
|
| 191 |
+
|
| 192 |
+
if "%DOWNLOAD_GGUF%"=="yes" (
|
| 193 |
+
echo [33mDownloading FLUX GGUF Model...[0m
|
| 194 |
+
if /i "%FLUX_GGUF_CHOICE%"=="A" (
|
| 195 |
+
curl -L -o flux1-dev-Q8_0.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q8_0.gguf?download=true
|
| 196 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="B" (
|
| 197 |
+
curl -L -o flux1-dev-Q5_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q5_K_S.gguf?download=true
|
| 198 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="C" (
|
| 199 |
+
curl -L -o flux1-dev-Q4_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q4_K_S.gguf?download=true
|
| 200 |
+
) else if /i "%FLUX_GGUF_CHOICE%"=="D" (
|
| 201 |
+
curl -L -o flux1-dev-Q8_0.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q8_0.gguf?download=true
|
| 202 |
+
curl -L -o flux1-dev-Q5_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q5_K_S.gguf?download=true
|
| 203 |
+
curl -L -o flux1-dev-Q4_K_S.gguf https://huggingface.co/city96/FLUX.1-dev-gguf/resolve/main/flux1-dev-Q4_K_S.gguf?download=true
|
| 204 |
+
)
|
| 205 |
+
)
|
| 206 |
+
|
| 207 |
+
REM Download FLUX SCHNELL Model if user chose to
|
| 208 |
+
if "%DOWNLOAD_FLUX_SCHNELL%"=="yes" (
|
| 209 |
+
echo [33mDownloading FLUX SCHNELL Model...[0m
|
| 210 |
+
curl -L -o flux1-schnell-fp8.safetensors https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/flux1-schnell-fp8.safetensors?download=true
|
| 211 |
+
)
|
| 212 |
+
|
| 213 |
+
cd ..
|
| 214 |
+
|
| 215 |
+
cd loras
|
| 216 |
+
REM Download FLUX SCHNELL Model if user chose to
|
| 217 |
+
if "%DOWNLOAD_FLUX_LORA%"=="yes" (
|
| 218 |
+
echo [33mDownloading UmeAiRT LoRAs...[0m
|
| 219 |
+
curl -L -o ume_sky_v2.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Ume_Sky/resolve/main/ume_sky_v2.safetensors?download=true
|
| 220 |
+
curl -L -o ume_modern_pixelart.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Modern_Pixel_art/resolve/main/ume_modern_pixelart.safetensors?download=true
|
| 221 |
+
curl -L -o ume_classic_Romanticism.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Romanticism/resolve/main/ume_classic_Romanticism.safetensors?download=true
|
| 222 |
+
curl -L -o ume_classic_impressionist.safetensors https://huggingface.co/UmeAiRT/FLUX.1-dev-LoRA-Impressionism/resolve/main/ume_classic_impressionist.safetensors?download=true
|
| 223 |
+
)
|
| 224 |
+
|
| 225 |
+
cd ..
|
| 226 |
+
|
| 227 |
+
REM Download upscale model
|
| 228 |
+
echo [33mDownloading upscale models...[0m
|
| 229 |
+
cd upscale_models
|
| 230 |
+
curl -L -o 4x_NMKD-Siax_200k.pth https://huggingface.co/uwg/upscaler/resolve/main/ESRGAN/4x_NMKD-Siax_200k.pth?download=true
|
| 231 |
+
curl -L -o 4x-ClearRealityV1.pth https://huggingface.co/skbhadra/ClearRealityV1/resolve/main/4x-ClearRealityV1.pth?download=true
|
| 232 |
+
|
| 233 |
+
cd ..
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
mkdir .\xlabs\controlnets
|
| 237 |
+
cd xlabs\controlnets
|
| 238 |
+
REM Download FLUX ControlNet Models if user chose to
|
| 239 |
+
if "%DOWNLOAD_FLUX_CONTROLNET%"=="yes" (
|
| 240 |
+
echo [33mDownloading FLUX ControlNet Models...[0m
|
| 241 |
+
curl -L -o flux-canny-controlnet-v3.safetensors https://huggingface.co/XLabs-AI/flux-controlnet-canny-v3/resolve/main/flux-canny-controlnet-v3.safetensors?download=true
|
| 242 |
+
curl -L -o flux-depth-controlnet-v3.safetensors https://huggingface.co/XLabs-AI/flux-controlnet-depth-v3/resolve/main/flux-depth-controlnet-v3.safetensors?download=true
|
| 243 |
+
curl -L -o flux-hed-controlnet-v3.safetensors https://huggingface.co/XLabs-AI/flux-controlnet-hed-v3/resolve/main/flux-hed-controlnet-v3.safetensors?download=true
|
| 244 |
+
)
|
| 245 |
+
|
| 246 |
+
cd ..\..\..
|
| 247 |
+
mkdir .\user\default
|
| 248 |
+
echo [33mDownloading comfy settings...[0m
|
| 249 |
+
cd user\default
|
| 250 |
+
curl -L -o comfy.settings.json https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/comfy.settings.json?download=true
|
| 251 |
+
echo [33mDownloading comfy workflow...[0m
|
| 252 |
+
mkdir .\workflows
|
| 253 |
+
cd workflows
|
| 254 |
+
curl -L -o "FLUX - TXT to IMG.json" https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/FLUX-TXTtoIMG.json?download=true
|
| 255 |
+
curl -L -o "FLUX - IMG to IMG.json" https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/FLUX-IMGtoIMG.json?download=true
|
| 256 |
+
curl -L -o "FLUX - Inpainting.json" https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/FLUX-Inpainting.json?download=true
|
| 257 |
+
curl -L -o "FLUX - Upscale.json" https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/FLUX-Upscale.json?download=true
|
| 258 |
+
curl -L -o "FLUX - CTRLNet DEPTH.json" https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/FLUX-CTRLNetDEPTH.json?download=true
|
| 259 |
+
curl -L -o "FLUX - CTRLNet CANNY.json" https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/FLUX-CTRLNetCANNY.json?download=true
|
| 260 |
+
curl -L -o "FLUX - CTRLNet HED.json" https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/FLUX-CTRLNetHED.json?download=true
|
| 261 |
+
cd ..\..\..\..
|
| 262 |
+
|
| 263 |
+
|
| 264 |
+
REM Final steps based on user choice
|
| 265 |
+
if "%INSTALL_TYPE%"=="fast-lowvram" (
|
| 266 |
+
echo Downloading special run file for fast-lowvram...
|
| 267 |
+
curl -L -o "run_nvidia_gpu-LOWVRAM.bat" "https://huggingface.co/UmeAiRT/FLUX-auto_installer/resolve/main/run_nvidia_gpu-LOWVRAM.bat?download=true"
|
| 268 |
+
echo ComfyUI and FLUX installed. Running ComfyUI...
|
| 269 |
+
call "run_nvidia_gpu-LOWVRAM.bat"
|
| 270 |
+
) else (
|
| 271 |
+
echo ComfyUI and FLUX installed. HAVE FUN ;)
|
| 272 |
+
)
|