Fix download script path detection
Use absolute path instead of relative /bin Ensures models are downloaded to correct location regardless of current working directory when running the script
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
|
||||
set -e
|
||||
|
||||
MODELS_DIR="$(dirname "$0")/models/checkpoints"
|
||||
VAE_DIR="$(dirname "$0")/models/vae"
|
||||
# Détection robuste du répertoire du script
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
MODELS_DIR="$SCRIPT_DIR/models/checkpoints"
|
||||
VAE_DIR="$SCRIPT_DIR/models/vae"
|
||||
|
||||
mkdir -p "$MODELS_DIR" "$VAE_DIR"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user