Skip to content

Commit

Permalink
Merge for Fooocus v2.1.852
Browse files Browse the repository at this point in the history
  • Loading branch information
konieshadow committed Dec 19, 2023
1 parent e9c70ec commit 979874e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

FastAPI powered API for [Fooocus](https://github.com/lllyasviel/Fooocus)

Currently loaded Fooocus version: 2.1.837
Currently loaded Fooocus version: 2.1.852

### Run with Replicate
Now you can use Fooocus-API by Replicate, the model is in [konieshadow/fooocus-api](https://replicate.com/konieshadow/fooocus-api).
Expand Down
1 change: 0 additions & 1 deletion cog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ build:
- "scipy==1.9.3"
- "tqdm==4.64.1"
- "psutil==5.9.5"
- "numpy==1.23.5"
- "pytorch_lightning==1.9.4"
- "omegaconf==2.2.3"
- "pygit2==1.12.2"
Expand Down
4 changes: 2 additions & 2 deletions fooocusapi/repositories_versions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os

fooocus_version = '2.1.837'
fooocus_version = '2.1.852'
fooocus_commit_hash = os.environ.get(
'FOOOCUS_COMMIT_HASH', "28b07cd658806c204a51de9c6ff20d0bbe2da041")
'FOOOCUS_COMMIT_HASH', "7a6b46f363d0f3797d263bfdf00bd16e315da02a")
6 changes: 4 additions & 2 deletions fooocusapi/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def process_generate(async_task: QueueTask, params: ImageGenerationParams) -> Li
from modules.upscaler import perform_upscale
from extras.expansion import safe_str
from modules.sdxl_styles import apply_style, fooocus_expansion, apply_wildcards
import fooocus_version

outputs = TaskOutputs(async_task)
results = []
Expand Down Expand Up @@ -793,11 +794,12 @@ def callback(step, x0, x, total_steps, y):
('Refiner Switch', refiner_switch),
('Sampler', sampler_name),
('Scheduler', scheduler_name),
('Seed', task['task_seed'])
('Seed', task['task_seed']),
]
for n, w in loras:
if n != 'None':
d.append((f'LoRA [{n}] weight', w))
d.append((f'LoRA', f'{n} : {w}'))
d.append(('Version', 'v' + fooocus_version.version))
log(x, d)

# Fooocus async_worker.py code end
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Pillow==9.2.0
scipy==1.9.3
tqdm==4.64.1
psutil==5.9.5
numpy==1.23.5
pytorch_lightning==1.9.4
omegaconf==2.2.3
pygit2==1.12.2
Expand Down

0 comments on commit 979874e

Please sign in to comment.