|
@echo off |
|
setlocal enabledelayedexpansion |
|
|
|
set "basePath=%CD%" |
|
|
|
if not exist "%basePath%\logs" mkdir "%basePath%\logs" |
|
|
|
:check_folder |
|
if exist "%basePath%\ComfyUI" ( |
|
echo ComfyUI folder detected |
|
set "modelsPath=%basePath%\ComfyUI\models" |
|
) else if exist "%basePath%\ComfyUI_windows_portable" ( |
|
echo ComfyUI folder detected |
|
set "modelsPath=%basePath%\ComfyUI_windows_portable\ComfyUI\models" |
|
) else ( |
|
echo ComfyUI folder not detected, give ComfyUI folder path: |
|
set /p "comfyPath=Path: " |
|
set "modelsPath=!comfyPath!\models" |
|
echo comfyPath = !comfyPath! |
|
echo modelsPath = !modelsPath! |
|
pause |
|
) |
|
|
|
:CHOOSE_OPTION |
|
|
|
echo [33mDo you want to download HiDream fp8 models? (24GB Vram recommanded)[0m |
|
echo [32mA) Yes[0m |
|
echo [32mB) No[0m |
|
set /p "CHOICE=Enter your choice (A or B) and press Enter: " |
|
if /i "%CHOICE%"=="A" ( |
|
echo [33mDownloading unet models file...[0m |
|
powershell -NoProfile -Command "$p = Join-Path $env:modelsPath 'diffusion_models\HIDREAM'; if (-Not (Test-Path $p)) { New-Item -ItemType Directory -Path $p | Out-Null }" |
|
curl -L -o "%modelsPath%/diffusion_models/HIDREAM/hidream_i1_dev_fp8.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/diffusion_models/HiDream/hidream_i1_dev_fp8.safetensors?download=true |
|
) else if /i "%CHOICE%"=="B" ( |
|
set "DOWNLOAD_HID=no" |
|
) else ( |
|
echo [31mInvalid choice. Please enter A,B,C or D.[0m |
|
goto CHOOSE_OPTION |
|
) |
|
|
|
:CHOOSE_HID_GGUF |
|
|
|
echo [33mDo you HID to download HiDream GGUF models?[0m |
|
echo [32mA) Q8_0 (16GB Vram)[0m |
|
echo [32mB) Q5_K_S (12GB Vram)[0m |
|
echo [32mC) Q4_K_S (less than 12GB Vram)[0m |
|
echo [32mD) All[0m |
|
echo [32mE) No[0m |
|
set /p "HID_GGUF_CHOICE=Enter your choice (A,B,C,D or E) and press Enter: " |
|
if /i "%HID_GGUF_CHOICE%"=="A" ( |
|
set "DOWNLOAD_GGUF=yes" |
|
) else if /i "%HID_GGUF_CHOICE%"=="B" ( |
|
set "DOWNLOAD_GGUF=yes" |
|
) else if /i "%HID_GGUF_CHOICE%"=="C" ( |
|
set "DOWNLOAD_GGUF=yes" |
|
) else if /i "%HID_GGUF_CHOICE%"=="D" ( |
|
set "DOWNLOAD_GGUF=yes" |
|
) else if /i "%HID_GGUF_CHOICE%"=="E" ( |
|
set "DOWNLOAD_GGUF=no" |
|
) else ( |
|
echo [31mInvalid choice. Please enter A,B,C,D or E.[0m |
|
goto CHOOSE_HID_GGUF |
|
) |
|
|
|
|
|
echo [33mDownloading VAE file...[0m |
|
curl -L -o "%modelsPath%/vae/ae.safetensors" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/vae/ae.safetensors?download=true" |
|
|
|
|
|
echo [33mDownloading CLIP files...[0m |
|
curl -L -o "%modelsPath%/clip/clip_g_hidream.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/clip_g_hidream.safetensors?download=true |
|
curl -L -o "%modelsPath%/clip/clip_l_hidream.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/clip_l_hidream.safetensors?download=true |
|
curl -L -o "%modelsPath%/clip/t5xxl_fp8_e4m3fn_scaled.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/t5xxl_fp8_e4m3fn_scaled.safetensors?download=true |
|
curl -L -o "%modelsPath%/clip/llama_3.1_8b_instruct_fp8_scaled.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/clip/llama_3.1_8b_instruct_fp8_scaled.safetensors?download=true |
|
|
|
if "%DOWNLOAD_GGUF%"=="yes" ( |
|
echo [33mDownloading HID GGUF Quant Model...[0m |
|
powershell -NoProfile -Command "$p = Join-Path $env:modelsPath 'unet\HIDREAM'; if (-Not (Test-Path $p)) { New-Item -ItemType Directory -Path $p | Out-Null }" |
|
if /i "%HID_GGUF_CHOICE%"=="A" ( |
|
curl -L -o "%modelsPath%/unet/HIDREAM/hidream-i1-dev-Q8_0.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/HiDream/hidream-i1-dev-Q8_0.gguf?download=true |
|
) else if /i "%HID_GGUF_CHOICE%"=="B" ( |
|
curl -L -o "%modelsPath%/unet/HIDREAM/hidream-i1-dev-Q5_K_S.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/HiDream/hidream-i1-dev-Q5_K_S.gguf?download=true |
|
) else if /i "%HID_GGUF_CHOICE%"=="C" ( |
|
curl -L -o "%modelsPath%/unet/HIDREAM/hidream-i1-dev-Q4_K_S.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/HiDream/hidream-i1-dev-Q4_K_S.gguf?download=true |
|
) else if /i "%HID_GGUF_CHOICE%"=="D" ( |
|
curl -L -o "%modelsPath%/unet/HIDREAM/hidream-i1-dev-Q8_0.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/HiDream/hidream-i1-dev-Q8_0.gguf?download=true |
|
curl -L -o "%modelsPath%/unet/HIDREAM/hidream-i1-dev-Q5_K_S.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/HiDream/hidream-i1-dev-Q5_K_S.gguf?download=true |
|
curl -L -o "%modelsPath%/unet/HIDREAM/hidream-i1-dev-Q4_K_S.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/HiDream/hidream-i1-dev-Q4_K_S.gguf?download=true |
|
) |
|
) |
|
|
|
echo [33mModels downloaded.[0m |
|
pause |