Skip to content

Commit

Permalink
Merge pull request #798 from Anthonyxd22/patch-2
Browse files Browse the repository at this point in the history
Update run-install.sh Fix brew ffmpeg   and export macOS
  • Loading branch information
blaisewf authored Oct 10, 2024
2 parents b1f2bf8 + f9502bb commit dfbf332
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions run-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ install_ffmpeg_flatpak() {
fi
}


install_python_ffmpeg() {
log_message "Installing python-ffmpeg..."
python -m pip install python-ffmpeg
}

# Function to create or activate a virtual environment
prepare_install() {
if [ -d ".venv" ]; then
Expand Down Expand Up @@ -106,6 +112,7 @@ create_venv() {
python -m pip install --upgrade pip

install_ffmpeg
install_python_ffmpeg

log_message "Installing dependencies..."
if [ -f "requirements.txt" ]; then
Expand Down Expand Up @@ -154,6 +161,7 @@ if [ "$(uname)" = "Darwin" ]; then
brew install python@3.10
export PYTORCH_ENABLE_MPS_FALLBACK=1
export PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0
export PATH="/opt/homebrew/bin:$PATH"
elif [ "$(uname)" != "Linux" ]; then
log_message "Unsupported operating system. Are you using Windows?"
log_message "If yes, use the batch (.bat) file instead of this one!"
Expand Down

0 comments on commit dfbf332

Please sign in to comment.