File size: 2,327 Bytes
30ece2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9977f17
30ece2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53cf2f4
30ece2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
language:
  - en
license: other
license_name: flux-1-dev-non-commercial-license
license_link: LICENSE.md
library_name: diffusers
pipeline_tag: text-to-image
tags:
  - text-to-image
  - image-generation
  - shuttle
widget:
  - text: >-
      a sexy girl,poses,look at camera,Slim figure, gigantic breasts,poses,natural,High-quality photography, creative composition, fashion foresight, a strong visual style, and an aura of luxury and sophistication collectively define the distinctive aesthetic of Vogue magazine.
    output:
      url: assets/t1.webp
  - text: >-
      real model slight smile girl in real life
    output:
      url: assets/t2.webp
instance_prompt: null
---
## DarkIdol-flux-v1.2
- Online Test https://huggingface.co/spaces/aifeifei798/DarkIdol-flux
- Online Test https://huggingface.co/spaces/aifeifei798/allinone-DarkIdol-flux
<table>
    <thead>
        <tr>
            <th>896 x 1152 (8 steps)</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <img src="./assets/t1.webp">
            <td>
        </tr>
    </tbody>
	<tbody>
        <tr>
            <td>
                a sexy girl,poses,look at camera,Slim figure, gigantic breasts,poses,natural,High-quality photography, creative composition, fashion foresight, a strong visual style, and an aura of luxury and sophistication collectively define the distinctive aesthetic of Vogue magazine.
            </td>
        </tr>
    </tbody>
</table>

## Inference code

```python
from diffusers import FluxPipeline
import torch
import numpy as np

MAX_SEED = np.iinfo(np.int32).max
seed = random.randint(0, MAX_SEED)
generator = torch.Generator().manual_seed(seed)

pipeline = FluxPipeline.from_pretrained(
    "aifeifei798/DarkIdol-flux-v1.2", torch_dtype=torch.bfloat16
).to("cuda")

# Enable VAE big pic
pipeline.vae.enable_slicing()
pipeline.vae.enable_tiling()

image = pipeline(
    prompt="real model slight smile girl in real life",
    guidance_scale=0,
    num_inference_steps=9,
    height=1152,
    width=896,
    max_sequence_length=512,
    generator=generator,
).images[0]
image.save("DarkIdol.png")
```

<img src="./assets/t2.webp">

## Documentation

* https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux
* https://huggingface.co/docs/diffusers/main/en/api/models/flux_transformer