UmeAiRT commited on
Commit
c33c035
·
verified ·
1 Parent(s): dbb246c

Upload UmeAiRT-LTXV-Model_downloader.bat

Browse files
scripts/Model_downloader/UmeAiRT-LTXV-Model_downloader.bat ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 LTXV base models?
27
+ echo A) 13B (30Gb)
28
+ echo B) 2B (7Gb)
29
+ echo C) All
30
+ echo D) No
31
+ set /p "CHOICE=Enter your choice (A,B,C or D) and press Enter: "
32
+ if /i "%CHOICE%"=="A" (
33
+ set "DOWNLOAD=yes"
34
+ ) else if /i "%CHOICE%"=="B" (
35
+ set "DOWNLOAD=yes"
36
+ ) else if /i "%CHOICE%"=="C" (
37
+ set "DOWNLOAD=yes"
38
+ ) else if /i "%CHOICE%"=="D" (
39
+ set "DOWNLOAD=no"
40
+ ) else (
41
+ echo Invalid choice. Please enter A,B,C,D or E.
42
+ goto CHOOSE_OPTION
43
+ )
44
+
45
+ :CHOOSE_LTXV_GGUF
46
+ REM Ask user if they want to download WAN GGUF Model
47
+ echo Do you want to download LTXV GGUF models?
48
+ echo A) Q8_0 (24GB Vram)
49
+ echo B) Q5_K_M (16GB Vram)
50
+ echo C) Q3_K_S (less than 12GB Vram)
51
+ echo D) All
52
+ echo E) No
53
+ set /p "LTXV_GGUF_CHOICE=Enter your choice (A,B,C,D or E) and press Enter: "
54
+ if /i "%LTXV_GGUF_CHOICE%"=="A" (
55
+ set "DOWNLOAD_GGUF=yes"
56
+ ) else if /i "%LTXV_GGUF_CHOICE%"=="B" (
57
+ set "DOWNLOAD_GGUF=yes"
58
+ ) else if /i "%LTXV_GGUF_CHOICE%"=="C" (
59
+ set "DOWNLOAD_GGUF=yes"
60
+ ) else if /i "%LTXV_GGUF_CHOICE%"=="D" (
61
+ set "DOWNLOAD_GGUF=yes"
62
+ ) else if /i "%LTXV_GGUF_CHOICE%"=="E" (
63
+ set "DOWNLOAD_GGUF=no"
64
+ ) else (
65
+ echo Invalid choice. Please enter A,B,C,D or E.
66
+ goto CHOOSE_LTXV_GGUF
67
+ )
68
+
69
+ if "%DOWNLOAD%"=="yes" (
70
+ echo Downloading checkpoint models file...
71
+ powershell -NoProfile -Command "$p = Join-Path $env:modelsPath 'checkpoints\LTXVN'; if (-Not (Test-Path $p)) { New-Item -ItemType Directory -Path $p | Out-Null }"
72
+ if /i "%CHOICE%"=="A" (
73
+ echo 13B Model :
74
+ curl -L -o "%modelsPath%/checkpoints/LTXV/ltxv-13b-0.9.7-dev.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/checkpoints/LTXV/ltxv-13b-0.9.7-dev.safetensors?download=true
75
+
76
+ ) else if /i "%CHOICE%"=="B" (
77
+ echo 2B Model :
78
+ curl -L -o "%modelsPath%/checkpoints/LTXV/ltxv-2b-0.9.6-dev-04-25.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/checkpoints/LTXV/ltxv-2b-0.9.6-dev-04-25.safetensors?download=true
79
+
80
+ ) else if /i "%CHOICE%"=="C" (
81
+ echo 13B Model :
82
+ curl -L -o "%modelsPath%/checkpoints/LTXV/ltxv-13b-0.9.7-dev.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/checkpoints/LTXV/ltxv-13b-0.9.7-dev.safetensors?download=true
83
+ echo 2B Model :
84
+ curl -L -o "%modelsPath%/checkpoints/LTXV/ltxv-2b-0.9.6-dev-04-25.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/checkpoints/LTXV/ltxv-2b-0.9.6-dev-04-25.safetensors?download=true
85
+ )
86
+ )
87
+
88
+ REM Download VAE file
89
+ echo Downloading VAE file...
90
+ curl -L -o "%modelsPath%/vae/ltxv-13b-0.9.7-vae-BF16.safetensors" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/vae/ltxv-13b-0.9.7-vae-BF16.safetensors?download=true
91
+
92
+ if "%DOWNLOAD_GGUF%"=="yes" (
93
+ echo Downloading GGUF Quant Model...
94
+ powershell -NoProfile -Command "$p = Join-Path $env:modelsPath 'unet\LTXV'; if (-Not (Test-Path $p)) { New-Item -ItemType Directory -Path $p | Out-Null }"
95
+ if /i "%LTXV_GGUF_CHOICE%"=="A" (
96
+ curl -L -o "%modelsPath%/unet/LTXV/ltxv-13b-0.9.7-dev-Q8_0.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/LTXV/ltxv-13b-0.9.7-dev-Q8_0.gguf?download=true
97
+ ) else if /i "%LTXV_GGUF_CHOICE%"=="B" (
98
+ curl -L -o "%modelsPath%/unet/LTXV/ltxv-13b-0.9.7-dev-Q5_K_M.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/LTXV/ltxv-13b-0.9.7-dev-Q5_K_M.gguf?download=true
99
+ ) else if /i "%LTXV_GGUF_CHOICE%"=="C" (
100
+ curl -L -o "%modelsPath%/unet/LTXV/ltxv-13b-0.9.7-dev-Q3_K_S.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/LTXV/ltxv-13b-0.9.7-dev-Q3_K_S.gguf?download=true
101
+ ) else if /i "%LTXV_GGUF_CHOICE%"=="D" (
102
+ curl -L -o "%modelsPath%/unet/LTXV/ltxv-13b-0.9.7-dev-Q8_0.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/LTXV/ltxv-13b-0.9.7-dev-Q8_0.gguf?download=true
103
+ curl -L -o "%modelsPath%/unet/LTXV/ltxv-13b-0.9.7-dev-Q5_K_M.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/LTXV/ltxv-13b-0.9.7-dev-Q5_K_M.gguf?download=true
104
+ curl -L -o "%modelsPath%/unet/LTXV/ltxv-13b-0.9.7-dev-Q3_K_S.gguf" https://huggingface.co/UmeAiRT/ComfyUI-Auto_installer/resolve/main/models/unet/LTXV/ltxv-13b-0.9.7-dev-Q3_K_S.gguf?download=true
105
+ )
106
+ )
107
+
108
+ echo Models downloaded.
109
+ pause