Support linux.
This commit is contained in:
lllyasviel
2023-08-12 23:43:10 -07:00
committed by GitHub
parent 59aa2aedeb
commit 8543bb5804
4 changed files with 27 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
version = '1.0.21' version = '1.0.22'
+2
View File
@@ -8,6 +8,7 @@ outputs = []
def worker(): def worker():
global buffer, outputs global buffer, outputs
import os
import time import time
import random import random
import modules.default_pipeline as pipeline import modules.default_pipeline as pipeline
@@ -59,6 +60,7 @@ def worker():
for x in imgs: for x in imgs:
local_temp_filename = generate_temp_filename(folder=modules.path.temp_outputs_path, extension='png') local_temp_filename = generate_temp_filename(folder=modules.path.temp_outputs_path, extension='png')
os.makedirs(os.path.dirname(local_temp_filename), exist_ok=True)
Image.fromarray(x).save(local_temp_filename) Image.fromarray(x).save(local_temp_filename)
seed += 1 seed += 1
+19 -1
View File
@@ -34,7 +34,25 @@ In the first time you launch the software, it will automatically download models
If you already have these files, you can copy them to the above locations to speed up installation. If you already have these files, you can copy them to the above locations to speed up installation.
### Linux/Mac/Windows(AMD GPUs) ### Linux
The command lines are
git clone https://github.com/lllyasviel/Fooocus.git
cd Fooocus
conda env create -f environment.yaml
conda activate fooocus
pip install -r requirements_versions.txt
Then download the models: download [sd_xl_base_1.0_0.9vae.safetensors from here](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0_0.9vae.safetensors) as the file "Fooocus\models\checkpoints\sd_xl_base_1.0_0.9vae.safetensors", and download [sd_xl_refiner_1.0_0.9vae.safetensors from here](https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0_0.9vae.safetensors) as the file "Fooocus\models\checkpoints\sd_xl_refiner_1.0_0.9vae.safetensors". **Or let Fooocus automatically download the models** using the launcher:
python launch.py
Or if you want to open a remote port, use
python launch.py --listen
### Mac/Windows(AMD GPUs)
Coming soon ... Coming soon ...
+5 -1
View File
@@ -1,6 +1,10 @@
### 1.0.20 ### 1.0.20
* Speed-up text encoder * Support linux.
### 1.0.20
* Speed-up text encoder.
### 1.0.20 ### 1.0.20