Update train_krea2_musubi_linux.sh
Browse files- train_krea2_musubi_linux.sh +10 -8
train_krea2_musubi_linux.sh
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
# Krea 2 / Musubi Tuner / Linux x86_64 -- INSTALL AND DOWNLOAD ONLY
|
| 3 |
-
#
|
| 4 |
# Statically checked only; this installer has NOT been executed.
|
| 5 |
# Dataset: https://huggingface.co/datasets/ACCC1380/train2/resolve/main/PNG.zip
|
|
|
|
| 6 |
# References:
|
| 7 |
# https://github.com/kohya-ss/musubi-tuner/blob/main/docs/krea2.md
|
| 8 |
# https://modal.com/docs/guide/images
|
| 9 |
#
|
| 10 |
-
# Usage: bash
|
| 11 |
# This file contains no training, model-caching or GPU-probing code.
|
| 12 |
set -Eeuo pipefail
|
| 13 |
umask 077
|
|
@@ -15,17 +16,18 @@ umask 077
|
|
| 15 |
usage() {
|
| 16 |
cat <<'HELP'
|
| 17 |
Krea 2 / Musubi Tuner 纯安装下载脚本,Linux x86_64。
|
| 18 |
-
|
| 19 |
|
| 20 |
功能:安装系统依赖、uv、Python 3.11、独立虚拟环境、CUDA 版 PyTorch、
|
| 21 |
Musubi Tuner;下载 Krea 2 Raw、VAE、文本编码器和你的 PNG.zip 数据集。
|
|
|
|
| 22 |
完成后退出。无需 GPU,可在 Modal / Docker 镜像构建阶段运行。
|
| 23 |
脚本不包含训练、模型缓存、推理或 GPU 检查流程。
|
| 24 |
|
| 25 |
用法:
|
| 26 |
-
bash
|
| 27 |
-
bash
|
| 28 |
-
bash
|
| 29 |
|
| 30 |
选项:
|
| 31 |
--work-dir PATH 安装和下载目录,默认 ~/krea2_musubi
|
|
@@ -179,8 +181,8 @@ root = pathlib.Path(os.environ["WORK_DIR"])
|
|
| 179 |
token = os.environ.get("HF_TOKEN") or None
|
| 180 |
jobs = [
|
| 181 |
("krea/Krea-2-Raw", "raw.safetensors", "krea_raw", os.environ["RAW_REVISION"]),
|
| 182 |
-
("Comfy-Org/
|
| 183 |
-
("Comfy-Org/
|
| 184 |
]
|
| 185 |
missing = any(not (root / "models" / subdir / filename).is_file()
|
| 186 |
for _, filename, subdir, _ in jobs)
|
|
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
# Krea 2 / Musubi Tuner / Linux x86_64 -- INSTALL AND DOWNLOAD ONLY
|
| 3 |
+
# Version: v3 | 2026-09-27 | Corrected Comfy-Org/Krea-2 companion model sources.
|
| 4 |
# Statically checked only; this installer has NOT been executed.
|
| 5 |
# Dataset: https://huggingface.co/datasets/ACCC1380/train2/resolve/main/PNG.zip
|
| 6 |
+
# Companion models: https://huggingface.co/Comfy-Org/Krea-2
|
| 7 |
# References:
|
| 8 |
# https://github.com/kohya-ss/musubi-tuner/blob/main/docs/krea2.md
|
| 9 |
# https://modal.com/docs/guide/images
|
| 10 |
#
|
| 11 |
+
# Usage: bash install_krea2_musubi_v3_20260927.sh
|
| 12 |
# This file contains no training, model-caching or GPU-probing code.
|
| 13 |
set -Eeuo pipefail
|
| 14 |
umask 077
|
|
|
|
| 16 |
usage() {
|
| 17 |
cat <<'HELP'
|
| 18 |
Krea 2 / Musubi Tuner 纯安装下载脚本,Linux x86_64。
|
| 19 |
+
版本:v3(2026-09-27),已修正 Comfy-Org/Krea-2 配套模型来源。
|
| 20 |
|
| 21 |
功能:安装系统依赖、uv、Python 3.11、独立虚拟环境、CUDA 版 PyTorch、
|
| 22 |
Musubi Tuner;下载 Krea 2 Raw、VAE、文本编码器和你的 PNG.zip 数据集。
|
| 23 |
+
VAE 和文本编码器来自 Comfy-Org/Krea-2;Raw 底模继续使用 krea/Krea-2-Raw。
|
| 24 |
完成后退出。无需 GPU,可在 Modal / Docker 镜像构建阶段运行。
|
| 25 |
脚本不包含训练、模型缓存、推理或 GPU 检查流程。
|
| 26 |
|
| 27 |
用法:
|
| 28 |
+
bash install_krea2_musubi_v3_20260927.sh
|
| 29 |
+
bash install_krea2_musubi_v3_20260927.sh --work-dir /大容量磁盘/krea2
|
| 30 |
+
bash install_krea2_musubi_v3_20260927.sh --zip /完整路径/PNG.zip
|
| 31 |
|
| 32 |
选项:
|
| 33 |
--work-dir PATH 安装和下载目录,默认 ~/krea2_musubi
|
|
|
|
| 181 |
token = os.environ.get("HF_TOKEN") or None
|
| 182 |
jobs = [
|
| 183 |
("krea/Krea-2-Raw", "raw.safetensors", "krea_raw", os.environ["RAW_REVISION"]),
|
| 184 |
+
("Comfy-Org/Krea-2", "vae/qwen_image_vae.safetensors", "qwen_vae", "main"),
|
| 185 |
+
("Comfy-Org/Krea-2", "text_encoders/qwen3vl_4b_bf16.safetensors", "qwen_te", "main"),
|
| 186 |
]
|
| 187 |
missing = any(not (root / "models" / subdir / filename).is_file()
|
| 188 |
for _, filename, subdir, _ in jobs)
|