lllyasviel commited on
Commit
c94d570
·
1 Parent(s): 59406a8

1.0.20 (#37)

Browse files

Support linux.

Files changed (4) hide show
  1. fooocus_version.py +1 -1
  2. modules/async_worker.py +2 -0
  3. readme.md +19 -1
  4. update_log.md +5 -1
fooocus_version.py CHANGED
@@ -1 +1 @@
1
- version = '1.0.21'
 
1
+ version = '1.0.22'
modules/async_worker.py CHANGED
@@ -8,6 +8,7 @@ outputs = []
8
  def worker():
9
  global buffer, outputs
10
 
 
11
  import time
12
  import random
13
  import modules.default_pipeline as pipeline
@@ -59,6 +60,7 @@ def worker():
59
 
60
  for x in imgs:
61
  local_temp_filename = generate_temp_filename(folder=modules.path.temp_outputs_path, extension='png')
 
62
  Image.fromarray(x).save(local_temp_filename)
63
 
64
  seed += 1
 
8
  def worker():
9
  global buffer, outputs
10
 
11
+ import os
12
  import time
13
  import random
14
  import modules.default_pipeline as pipeline
 
60
 
61
  for x in imgs:
62
  local_temp_filename = generate_temp_filename(folder=modules.path.temp_outputs_path, extension='png')
63
+ os.makedirs(os.path.dirname(local_temp_filename), exist_ok=True)
64
  Image.fromarray(x).save(local_temp_filename)
65
 
66
  seed += 1
readme.md CHANGED
@@ -34,7 +34,25 @@ In the first time you launch the software, it will automatically download models
34
 
35
  If you already have these files, you can copy them to the above locations to speed up installation.
36
 
37
- ### Linux/Mac/Windows(AMD GPUs)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  Coming soon ...
40
 
 
34
 
35
  If you already have these files, you can copy them to the above locations to speed up installation.
36
 
37
+ ### Linux
38
+
39
+ The command lines are
40
+
41
+ git clone https://github.com/lllyasviel/Fooocus.git
42
+ cd Fooocus
43
+ conda env create -f environment.yaml
44
+ conda activate fooocus
45
+ pip install -r requirements_versions.txt
46
+
47
+ 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:
48
+
49
+ python launch.py
50
+
51
+ Or if you want to open a remote port, use
52
+
53
+ python launch.py --listen
54
+
55
+ ### Mac/Windows(AMD GPUs)
56
 
57
  Coming soon ...
58
 
update_log.md CHANGED
@@ -1,6 +1,10 @@
1
  ### 1.0.20
2
 
3
- * Speed-up text encoder
 
 
 
 
4
 
5
  ### 1.0.20
6
 
 
1
  ### 1.0.20
2
 
3
+ * Support linux.
4
+
5
+ ### 1.0.20
6
+
7
+ * Speed-up text encoder.
8
 
9
  ### 1.0.20
10