UmeAiRT commited on
Commit
ea4da3d
·
verified ·
1 Parent(s): a23961a

Upload UmeAiRT-HIDREAM-Model_downloader.bat

Browse files
scripts/Model_downloader/UmeAiRT-HIDREAM-Model_downloader.bat ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal enabledelayedexpansion
3
+
4
+ set "basePath=%CD%"
5
+
6
+ if not exist "%basePath%\logs" mkdir "%basePath%\logs"
7
+
8
+ :check_folder
9
+ if exist "%basePath%\ComfyUI" (
10
+ echo ComfyUI folder detected
11
+ set "modelsPath=%basePath%\ComfyUI\models"
12
+ ) else if exist "%basePath%\ComfyUI_windows_portable" (
13
+ echo ComfyUI folder detected
14
+ set "modelsPath=%basePath%\ComfyUI_windows_portable\ComfyUI\models"
15
+ ) else (
16
+ echo ComfyUI folder not detected, give ComfyUI folder path:
17
+ set /p "comfyPath=Path: "
18
+ set "modelsPath=!comfyPath!\models"
19
+ echo comfyPath = !comfyPath!
20
+ echo modelsPath = !modelsPath!
21
+ pause
22
+ )
23
+
24
+ :CHOOSE_OPTION
25
+ REM Ask user for installation type
26
+ echo Do you want to download HiDream fp8 models? (24GB Vram recommanded)
27
+ echo A) Yes
28
+ echo B) No
29
+ set /p "CHOICE=Enter your choice (A or B) and press Enter: "
30
+ if /i "%CHOICE%"=="A" (
31
+ echo Downloading unet models file...
32
+ powershell -NoProfile -Command "$p = Join-Path $env:modelsPath 'diffusion_models\HIDREAM'; if (-Not (Test-Path $p)) { New-Item -ItemType Directory -Path $p | Out-Null }"
33
+ curl -L -o "%modelsPath%/unet/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
34
+ ) else if /i "%CHOICE%"=="B" (
35
+
36
+ ) else (
37
+ echo Invalid choice. Please enter A,B,C or D.
38
+ goto CHOOSE_OPTION
39
+ )
40
+
41
+ :CHOOSE_HID_GGUF
42
+ REM Ask user if they HIDt to download HID GGUF Model
43
+ echo Do you HIDt to download HiDream GGUF models?
44
+ echo A) Q8_0 (16GB Vram)
45
+ echo B) Q5_K_S (12GB Vram)
46
+ echo C) Q4_K_S (less than 12GB Vram)
47
+ echo D) All
48
+ echo E) No
49
+ set /p "HID_GGUF_CHOICE=Enter your choice (A,B,C,D or E) and press Enter: "
50
+ if /i "%HID_GGUF_CHOICE%"=="A" (
51
+ set "DOWNLOAD_GGUF=yes"
52
+ ) else if /i "%HID_GGUF_CHOICE%"=="B" (
53
+ set "DOWNLOAD_GGUF=yes"
54
+ ) else if /i "%HID_GGUF_CHOICE%"=="C" (
55
+ set "DOWNLOAD_GGUF=yes"
56
+ ) else if /i "%HID_GGUF_CHOICE%"=="D" (
57
+ set "DOWNLOAD_GGUF=yes"
58
+ ) else if /i "%HID_GGUF_CHOICE%"=="E" (
59
+ set "DOWNLOAD_GGUF=no"
60
+ ) else (
61
+ echo Invalid choice. Please enter A,B,C,D or E.
62
+ goto CHOOSE_HID_GGUF
63
+ )
64
+
65
+ REM Download VAE file
66
+ echo Downloading VAE file...
67
+ curl -L -o "%modelsPath%/vae/ae.safetensors" "https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/vae/ae.safetensors?download=true"
68
+
69
+ REM Download CLIP files
70
+ echo Downloading CLIP files...
71
+ 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
72
+ 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
73
+ 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
74
+ 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
75
+
76
+ if "%DOWNLOAD_GGUF%"=="yes" (
77
+ echo Downloading HID GGUF Quant Model...
78
+ powershell -NoProfile -Command "$p = Join-Path $env:modelsPath 'unet\HIDREAM'; if (-Not (Test-Path $p)) { New-Item -ItemType Directory -Path $p | Out-Null }"
79
+ if /i "%HID_GGUF_CHOICE%"=="A" (
80
+ 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
81
+ ) else if /i "%HID_GGUF_CHOICE%"=="B" (
82
+ curl -L -o "%modelsPath%/unet/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
83
+ ) else if /i "%HID_GGUF_CHOICE%"=="C" (
84
+ curl -L -o "%modelsPath%/unet/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
85
+ ) else if /i "%HID_GGUF_CHOICE%"=="D" (
86
+ 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
87
+ curl -L -o "%modelsPath%/unet/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
88
+ curl -L -o "%modelsPath%/unet/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
89
+ )
90
+ )
91
+
92
+ echo Models downloaded.
93
+ pause