aifeifei798 commited on
Commit
30ece2f
·
verified ·
1 Parent(s): 358fa13

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +84 -3
  2. assets/t1.webp +0 -0
  3. assets/t2.webp +0 -0
README.md CHANGED
@@ -1,3 +1,84 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: other
5
+ license_name: flux-1-dev-non-commercial-license
6
+ license_link: LICENSE.md
7
+ library_name: diffusers
8
+ pipeline_tag: text-to-image
9
+ tags:
10
+ - text-to-image
11
+ - image-generation
12
+ - shuttle
13
+ widget:
14
+ - text: >-
15
+ 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.
16
+ output:
17
+ url: assets/t1.webp
18
+ - text: >-
19
+ real model slight smile girl in real life
20
+ output:
21
+ url: assets/t2.webp
22
+ instance_prompt: null
23
+ ---
24
+ ## DarkIdol-flux-v1.2
25
+ - Online Test https://huggingface.co/spaces/aifeifei798/DarkIdol-flux
26
+ <table>
27
+ <thead>
28
+ <tr>
29
+ <th>896 x 1152 (8 steps)</th>
30
+ </tr>
31
+ </thead>
32
+ <tbody>
33
+ <tr>
34
+ <td>
35
+ <img src="./assets/t1.webp">
36
+ <td>
37
+ </tr>
38
+ </tbody>
39
+ <tbody>
40
+ <tr>
41
+ <td>
42
+ 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.
43
+ </td>
44
+ </tr>
45
+ </tbody>
46
+ </table>
47
+
48
+ ## Inference code
49
+
50
+ ```python
51
+ from diffusers import FluxPipeline
52
+ import torch
53
+ import numpy as np
54
+
55
+ MAX_SEED = np.iinfo(np.int32).max
56
+ seed = random.randint(0, MAX_SEED)
57
+ generator = torch.Generator().manual_seed(seed)
58
+
59
+ pipeline = FluxPipeline.from_pretrained(
60
+ "aifeifei798/DarkIdol-flux-v1.2", torch_dtype=torch.bfloat16
61
+ ).to("cuda")
62
+
63
+ # Enable VAE big pic
64
+ pipeline.vae.enable_slicing()
65
+ pipeline.vae.enable_tiling()
66
+
67
+ image = pipeline(
68
+ prompt="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.",
69
+ guidance_scale=0,
70
+ num_inference_steps=9,
71
+ height=1152,
72
+ width=896,
73
+ max_sequence_length=512,
74
+ generator=generator,
75
+ ).images[0]
76
+ image.save("DarkIdol.png")
77
+ ```
78
+
79
+ <img src="./assets/t2.webp">
80
+
81
+ ## Documentation
82
+
83
+ * https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux
84
+ * https://huggingface.co/docs/diffusers/main/en/api/models/flux_transformer
assets/t1.webp ADDED
assets/t2.webp ADDED