mirror of
https://www.modelscope.cn/black-forest-labs/FLUX.1-dev.git
synced 2026-04-02 16:22:53 +08:00
Update README.md (#46)
- Update README.md (04bf310e2362f0204cf061263c03f050c353bc16) Co-authored-by: Sayak Paul <sayakpaul@users.noreply.huggingface.co>
This commit is contained in:
@ -10,8 +10,6 @@ tags:
|
|||||||
- text-to-image
|
- text-to-image
|
||||||
- image-generation
|
- image-generation
|
||||||
- flux
|
- flux
|
||||||
studios:
|
|
||||||
- muse/flux_dev
|
|
||||||
---
|
---
|
||||||
|
|
||||||
![FLUX.1 [dev] Grid](./dev_grid.jpg)
|
![FLUX.1 [dev] Grid](./dev_grid.jpg)
|
||||||
@ -44,7 +42,7 @@ The FLUX.1 models are also available via API from the following sources
|
|||||||
To use `FLUX.1 [dev]` with the 🧨 diffusers python library, first install or upgrade diffusers
|
To use `FLUX.1 [dev]` with the 🧨 diffusers python library, first install or upgrade diffusers
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pip install git+https://github.com/huggingface/diffusers.git
|
pip install -U diffusers
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can use `FluxPipeline` to run the model
|
Then you can use `FluxPipeline` to run the model
|
||||||
@ -62,7 +60,6 @@ image = pipe(
|
|||||||
height=1024,
|
height=1024,
|
||||||
width=1024,
|
width=1024,
|
||||||
guidance_scale=3.5,
|
guidance_scale=3.5,
|
||||||
output_type="pil",
|
|
||||||
num_inference_steps=50,
|
num_inference_steps=50,
|
||||||
max_sequence_length=512,
|
max_sequence_length=512,
|
||||||
generator=torch.Generator("cpu").manual_seed(0)
|
generator=torch.Generator("cpu").manual_seed(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user