Skip to content

Instantly share code, notes, and snippets.

@cgmb
Last active March 10, 2025 05:47
Show Gist options
  • Save cgmb/883b57b8e5e4f428739b735750923e1f to your computer and use it in GitHub Desktop.
Save cgmb/883b57b8e5e4f428739b735750923e1f to your computer and use it in GitHub Desktop.
Install Fooocus on Debian Unstable
#!/bin/bash
# Install Foocus on Debian Unstable on PyTorch Nightly (Tested on of 2025-03-09)
# Tested running in Docker as the root user
cd ~
apt -y update
apt -y upgrade
apt -y install bzip2 ca-certificates gfortran git gzip lsb-release patch python3 tar unzip xz-utils zstd build-essential cmake python3-dev python3-full meson pkg-config cargo libopenblas-dev libgit2-dev
git clone -c feature.manyFiles=true https://github.com/spack/spack.git
cd spack
git checkout v0.23.1
. share/spack/setup-env.sh
spack spec [email protected]
spack external find
spack spec [email protected]
spack install [email protected]
spack load [email protected]
python --version
cd ~
git clone https://github.com/lllyasviel/Fooocus.git
cd Fooocus
git checkout 59f183ab9b8e4a4bbf0fb8bc43886e19e8dfdfae
python3 -m venv venv3
. venv3/bin/activate
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.3
pip install -r requirements_versions.txt
python3 entry_with_update.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment