Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions scripts/add_external_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ set -e

if [ -n "$COMFYUI_INSTALLER_DIR" ]; then
if [ -f ".settings" ]; then
pirntf "source [\033[0;32m.settings\033[m]"
printf "source [\033[0;32m.settings\033[m]\n"
source .settings
elif [ -f "scripts/.settings" ]; then
printf "source [\033[0;32mscripts/.settings\033[m]"
printf "source [\033[0;32mscripts/.settings\033[m]\n"
source scripts/.settings
else
printf "[!] No settings file found. Please run the setup script first."
printf "[!] No settings file found. Please run the setup script first.\n"
exit 1
fi
sleep 1
Expand All @@ -28,7 +28,7 @@ EXTRA_MODELS() {
printf "[!] [\033[0;32mExtra Model Paths\033[m] file found, creating backup.\n"
cp "$COMFYUI_DIR/extra_model_paths.yaml" "$COMFYUI_DIR/extra_model_paths.yaml.bak"
fi
cat <<EOF >>"$COMFYUI_DIR/extra_model_paths.yaml"
cat <<EOF >"$COMFYUI_DIR/extra_model_paths.yaml"
comfyui:
base_path: $EXTERNAL_MODELS_DIR
# You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads
Expand All @@ -38,8 +38,10 @@ comfyui:
clip_vision: models/clip_vision/
configs: models/configs/
controlnet: models/controlnet/
diffusion_models: |
models/diffusion_models
# --- FIX ---
# The previous multi-line definition for 'diffusion_models' was incorrect
# and caused a YAML syntax error. It has been corrected to a single line.
diffusion_models: models/diffusion_models/
lora: models/lora/
upscale_models: models/upscale_models/
vae: models/vae/
Expand Down