Skip to content

Commit

Permalink
Update version, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
konieshadow committed Dec 22, 2023
1 parent 8355e00 commit 1431422
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
27 changes: 21 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,28 @@ python main.py
```
On default, server is listening on 'http://127.0.0.1:8888'

Using Fooocus preset, run:
```
python main.py --preset anime
```

For program arguments, see
### CMD Flags
* -h, --help show this help message and exit
* --port PORT Set the listen port, default: 8888
* --host HOST Set the listen host, default: 127.0.0.1
* --base-url BASE_URL Set base url for outside visit, default is http://host:port
* --log-level LOG_LEVEL Log info for Uvicorn, default: info
* --sync-repo SYNC_REPO Sync dependent git repositories to local, 'skip' for skip sync action, 'only' for only do the sync action and not launch app
* --skip-pip Skip automatic pip install when setup
* --preload-pipeline Preload pipeline before start http server
* --queue-size QUEUE_SIZE Working queue size, default: 3, generation requests exceeding working queue size will return failure
* --queue-history QUEUE_HISTORY Finished jobs reserve size, tasks exceeding the limit will be deleted, including output image files, default: 100

Since v0.3.25, added CMD flags support of Fooocus. You can pass any argument which Fooocus supported.

For example, to startup image generation (need more vRAM):
```
python main.py -h
python main.py --all-in-fp16 --always-gpu
```

For Fooocus CMD flags, see [here](https://github.com/lllyasviel/Fooocus?tab=readme-ov-file#all-cmd-flags).

### Start with docker
Before use docker with GPU, you should [install NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html) first.

Expand Down Expand Up @@ -79,6 +91,9 @@ All the generation api support for response in PNG bytes directly when request's

All the generation api support async process by pass parameter `async_process` to true. And then use query job api to retrieve progress and generation results.

Break changes from v0.3.25
* Removed cli argument `disable-private-log`. You can use Fooocus's `--disable-image-log` for the same purpose.

Break changes from v0.3.24:
* This version merged Fooocus v2.1.839, which include a seed breaking change. Details for [2.1.839](https://github.com/lllyasviel/Fooocus/blob/main/update_log.md#21839).

Expand Down
2 changes: 1 addition & 1 deletion fooocus_api_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '0.3.24'
version = '0.3.25'

0 comments on commit 1431422

Please sign in to comment.