Expand router into reproducible local AI platform
This commit is contained in:
+6
-10
@@ -51,13 +51,11 @@ if [ ! -x "$VENV/bin/python" ]; then
|
||||
echo "-- Erstelle Python-Venv in $VENV"
|
||||
python3 -m venv "$VENV"
|
||||
fi
|
||||
echo "-- Installiere/aktualisiere Bild-Abhängigkeiten (torch, diffusers, ...)"
|
||||
echo "-- Installiere festgeschriebene Bild-Abhängigkeiten"
|
||||
"$VENV/bin/pip" install --quiet --upgrade pip
|
||||
"$VENV/bin/pip" install --quiet \
|
||||
torch \
|
||||
diffusers \
|
||||
transformers \
|
||||
accelerate
|
||||
"$VENV/bin/pip" install --quiet torch==2.11.0+cu128 \
|
||||
--index-url https://download.pytorch.org/whl/cu128
|
||||
"$VENV/bin/pip" install --quiet -r "$DIR/requirements-image.lock"
|
||||
|
||||
# --- 4. FLUX-Modell (nur wenn noch nicht vorhanden) --------------------------
|
||||
if [ -f "$MODEL_DIR/model_index.json" ]; then
|
||||
@@ -89,12 +87,10 @@ if [ ! -x "$XTTS_VENV/bin/python" ]; then
|
||||
uv venv --python 3.11 "$XTTS_VENV"
|
||||
"$XTTS_VENV/bin/pip" install --quiet --upgrade pip
|
||||
echo "-- Installiere CPU-only torch"
|
||||
"$XTTS_VENV/bin/pip" install --quiet torch torchaudio \
|
||||
"$XTTS_VENV/bin/pip" install --quiet torch==2.11.0+cpu torchaudio==2.11.0+cpu \
|
||||
--index-url https://download.pytorch.org/whl/cpu
|
||||
echo "-- Installiere Coqui TTS + Abhängigkeiten"
|
||||
"$XTTS_VENV/bin/pip" install --quiet \
|
||||
TTS==0.22.0 transformers==4.40.2 tokenizers==0.19.1 \
|
||||
huggingface-hub==0.36.2 librosa soundfile
|
||||
"$XTTS_VENV/bin/pip" install --quiet -r "$DIR/requirements-xtts.lock"
|
||||
# PyTorch 2.6+ weights_only-Patch für Coqui TTS
|
||||
echo "-- Wende weights_only-Patch für Coqui TTS an"
|
||||
"$XTTS_VENV/bin/python" - <<'PY'
|
||||
|
||||
Reference in New Issue
Block a user