metercai / SimpleSDXL

Enhanced version of Fooocus for SDXL, more suitable for Chinese and Cloud
GNU General Public License v3.0
328 stars 25 forks source link

求mac(m1)一键启动 #40

Open madsteed opened 5 months ago

madsteed commented 5 months ago

如题,prompt中文方便,我已装fooocus原装,但没有windows的设备,英文不是很方便~蟹蟹~

metercai commented 5 months ago

和安装原版Fooocus一样,只需要把git的地址https://github.com/lllyasviel/Fooocus.git 改成 https://github.com/metercai/SimpleSDXL.git ,其他步骤完全一样:

  1. Install the conda package manager and pytorch nightly. Read the Accelerated PyTorch training on Mac Apple Developer guide for instructions. Make sure pytorch recognizes your MPS device.
  2. Open the macOS Terminal app and clone this repository with git clone https://github.com/lllyasviel/Fooocus.git.
  3. Change to the new Fooocus directory, cd Fooocus.
  4. Create a new conda environment, conda env create -f environment.yaml.
  5. Activate your new conda environment, conda activate fooocus.
  6. Install the packages required by Fooocus, pip install -r requirements_versions.txt.
  7. Launch Fooocus by running python entry_with_update.py. (Some Mac M2 users may need python entry_with_update.py --disable-offload-from-vram to speed up model loading/unloading.) The first time you run Fooocus, it will automatically download the Stable Diffusion SDXL models and will take a significant amount of time, depending on your internet connection.