Update installer to download DreamShaper 8 model and sync tool checkpoint name

This commit is contained in:
2026-02-22 23:58:58 +00:00
parent e49dcbd075
commit 8da1780f6e
2 changed files with 15 additions and 1 deletions

View File

@@ -79,6 +79,20 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
pip3 install -r requirements.txt pip3 install -r requirements.txt
echo "✅ ComfyUI installed." echo "✅ ComfyUI installed."
# 5. Download Image Generation Model
echo ""
echo "[*] Downloading Image Generation Model (DreamShaper 8)..."
MODEL_DIR="models/checkpoints"
mkdir -p "$MODEL_DIR"
MODEL_PATH="$MODEL_DIR/dreamshaper_8.safetensors"
if [ ! -f "$MODEL_PATH" ]; then
echo " This may take a few minutes (approx. 2GB)..."
curl -L "https://huggingface.co/Lykon/DreamShaper/resolve/main/DreamShaper_8_pruned.safetensors" -o "$MODEL_PATH"
echo "✅ Model downloaded."
else
echo "✅ Model already exists."
fi
echo "" echo ""
echo "[!] To use Image Generation, you must start ComfyUI:" echo "[!] To use Image Generation, you must start ComfyUI:"
echo " cd $INSTALL_DIR" echo " cd $INSTALL_DIR"

View File

@@ -30,7 +30,7 @@ def generate_image(prompt: str) -> str:
# Based on the user's previous generate_image.py, but using the configured URL # Based on the user's previous generate_image.py, but using the configured URL
workflow = { workflow = {
"1": { "1": {
"inputs": {"ckpt_name": "dreamshaper_8.safetensors"}, "inputs": {"ckpt_name": "dreamshaper_8_pruned.safetensors"},
"class_type": "CheckpointLoaderSimple" "class_type": "CheckpointLoaderSimple"
}, },
"2": { "2": {