forked from Akegarasu/lora-scripts
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDownload-Anima-Model.bat
More file actions
101 lines (92 loc) · 3.34 KB
/
Copy pathDownload-Anima-Model.bat
File metadata and controls
101 lines (92 loc) · 3.34 KB
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
94
95
96
97
98
99
100
101
@echo off
chcp 65001 >nul 2>&1
title Download Anima Model
cd /d "%~dp0"
set "SCRIPT_DIR=%~dp0"
set "TRAINER_DIR="
if exist "%SCRIPT_DIR%gui.py" (
set "TRAINER_DIR=%SCRIPT_DIR%"
) else if exist "%SCRIPT_DIR%Next-Trainer\gui.py" (
set "TRAINER_DIR=%SCRIPT_DIR%Next-Trainer\"
) else if exist "%SCRIPT_DIR%..\Next-Trainer\gui.py" (
rem 2026 portable: bat lives under tools\
for %%I in ("%SCRIPT_DIR%..") do set "TRAINER_DIR=%%~fI\Next-Trainer\"
) else if exist "%SCRIPT_DIR%SD-Trainer\gui.py" (
set "TRAINER_DIR=%SCRIPT_DIR%SD-Trainer\"
) else (
echo [Error] Next-Trainer directory not found.
echo.
echo Put this bat file in one of these locations:
echo 1. The portable package root, next to run_gui.bat / 启动.bat
echo 2. tools\ inside a 2026 portable package
echo 3. The Next-Trainer folder, next to gui.py
echo.
pause
exit /b 1
)
set "MODEL_DIR=%TRAINER_DIR%sd-models\anima"
set "BASE_URL=https://www.modelscope.cn/models/circlestone-labs/Anima/resolve/master/split_files"
echo ============================================================
echo Anima Model Downloader
echo ============================================================
echo.
echo Files:
echo 1. anima-base-v1.0.safetensors (DiT)
echo 2. qwen_3_06b_base.safetensors (Text Encoder)
echo 3. qwen_image_vae.safetensors (VAE)
echo.
echo Save to:
echo %MODEL_DIR%
echo.
echo Source: ModelScope (circlestone-labs/Anima)
echo ============================================================
echo.
if not exist "%MODEL_DIR%" mkdir "%MODEL_DIR%"
if exist "%MODEL_DIR%\anima-base-v1.0.safetensors" (
echo [Skip] anima-base-v1.0.safetensors already exists
) else (
echo [1/3] Downloading anima-base-v1.0.safetensors ...
curl -L -# -o "%MODEL_DIR%\anima-base-v1.0.safetensors" "%BASE_URL%/diffusion_models/anima-base-v1.0.safetensors"
if errorlevel 1 (
echo [Failed] Download failed
del "%MODEL_DIR%\anima-base-v1.0.safetensors" 2>nul
) else (
echo [OK] Done
)
)
echo.
if exist "%MODEL_DIR%\qwen_3_06b_base.safetensors" (
echo [Skip] qwen_3_06b_base.safetensors already exists
) else (
echo [2/3] Downloading qwen_3_06b_base.safetensors ...
curl -L -# -o "%MODEL_DIR%\qwen_3_06b_base.safetensors" "%BASE_URL%/text_encoders/qwen_3_06b_base.safetensors"
if errorlevel 1 (
echo [Failed] Download failed
del "%MODEL_DIR%\qwen_3_06b_base.safetensors" 2>nul
) else (
echo [OK] Done
)
)
echo.
if exist "%MODEL_DIR%\qwen_image_vae.safetensors" (
echo [Skip] qwen_image_vae.safetensors already exists
) else (
echo [3/3] Downloading qwen_image_vae.safetensors ...
curl -L -# -o "%MODEL_DIR%\qwen_image_vae.safetensors" "%BASE_URL%/vae/qwen_image_vae.safetensors"
if errorlevel 1 (
echo [Failed] Download failed
del "%MODEL_DIR%\qwen_image_vae.safetensors" 2>nul
) else (
echo [OK] Done
)
)
echo.
echo ============================================================
echo Download complete
echo.
echo Model paths for WebUI:
echo DiT: ./sd-models/anima/anima-base-v1.0.safetensors
echo Text Encoder: ./sd-models/anima/qwen_3_06b_base.safetensors
echo VAE: ./sd-models/anima/qwen_image_vae.safetensors
echo ============================================================
pause