File size: 748 Bytes
9e835d0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
---
language:
- en
library_name: diffusers
license: other
license_name: flux-1-dev-non-commercial-license
license_link: LICENSE.md
---
## Inference code
```python
from diffusers import FluxPipeline
import torch
pipeline = FluxPipeline.from_pretrained(
"aifeifei798/DarkIdol-flux-v1", torch_dtype=torch.bfloat16
).to("cuda")
image = pipeline(
prompt="the photo is a 18 yo jpop girl",
guidance_scale=3.5,
num_inference_steps=4,
height=880,
width=1184,
max_sequence_length=512,
generator=torch.manual_seed(0),
).images[0]
image.save("merged_flux.png")
```
## Documentation
* https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux
* https://huggingface.co/docs/diffusers/main/en/api/models/flux_transformer |