aifeifei798
commited on
Upload 2 files
Browse files- README.md +33 -0
- model_index.json +32 -0
README.md
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
library_name: diffusers
|
5 |
+
license: other
|
6 |
+
license_name: flux-1-dev-non-commercial-license
|
7 |
+
license_link: LICENSE.md
|
8 |
+
---
|
9 |
+
## Inference code
|
10 |
+
|
11 |
+
```python
|
12 |
+
from diffusers import FluxPipeline
|
13 |
+
import torch
|
14 |
+
|
15 |
+
pipeline = FluxPipeline.from_pretrained(
|
16 |
+
"aifeifei798/DarkIdol-flux-v1", torch_dtype=torch.bfloat16
|
17 |
+
).to("cuda")
|
18 |
+
image = pipeline(
|
19 |
+
prompt="the photo is a 18 yo jpop girl",
|
20 |
+
guidance_scale=3.5,
|
21 |
+
num_inference_steps=4,
|
22 |
+
height=880,
|
23 |
+
width=1184,
|
24 |
+
max_sequence_length=512,
|
25 |
+
generator=torch.manual_seed(0),
|
26 |
+
).images[0]
|
27 |
+
image.save("merged_flux.png")
|
28 |
+
```
|
29 |
+
|
30 |
+
## Documentation
|
31 |
+
|
32 |
+
* https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux
|
33 |
+
* https://huggingface.co/docs/diffusers/main/en/api/models/flux_transformer
|
model_index.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "FluxPipeline",
|
3 |
+
"_diffusers_version": "0.31.0",
|
4 |
+
"scheduler": [
|
5 |
+
"diffusers",
|
6 |
+
"FlowMatchEulerDiscreteScheduler"
|
7 |
+
],
|
8 |
+
"text_encoder": [
|
9 |
+
"transformers",
|
10 |
+
"CLIPTextModel"
|
11 |
+
],
|
12 |
+
"text_encoder_2": [
|
13 |
+
"transformers",
|
14 |
+
"T5EncoderModel"
|
15 |
+
],
|
16 |
+
"tokenizer": [
|
17 |
+
"transformers",
|
18 |
+
"CLIPTokenizer"
|
19 |
+
],
|
20 |
+
"tokenizer_2": [
|
21 |
+
"transformers",
|
22 |
+
"T5TokenizerFast"
|
23 |
+
],
|
24 |
+
"transformer": [
|
25 |
+
"diffusers",
|
26 |
+
"FluxTransformer2DModel"
|
27 |
+
],
|
28 |
+
"vae": [
|
29 |
+
"diffusers",
|
30 |
+
"AutoencoderKL"
|
31 |
+
]
|
32 |
+
}
|