File size: 4,901 Bytes
4d06fa0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
@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
REM Ask user for installation type
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
REM Ask user if they HIDt to download HID GGUF Model
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
)
REM Download VAE file
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"
REM Download CLIP files
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 |