InvokeAI / start.sh
radames's picture
fix
327a922
raw
history blame contribute delete
510 Bytes
#!/bin/bash
set -e
# Activate virtual environment
source $HOME/.venv/bin/activate
echo "Current PATH: $PATH"
echo "INVOKEAI_ROOT: $INVOKEAI_ROOT"
echo "Python version: $(python --version)"
echo "Pip version: $(pip --version)"
# Create INVOKEAI_ROOT directory if it doesn't exist
mkdir -p $INVOKEAI_ROOT
# Copy invokeai.yaml to INVOKEAI_ROOT if it doesn't exist
if [ ! -f "$INVOKEAI_ROOT/invokeai.yaml" ]; then
cp $HOME/invokeai.yaml $INVOKEAI_ROOT/invokeai.yaml
fi
# Run invokeai-web
exec invokeai-web