Raelina commited on
Commit
44663a2
1 Parent(s): 4d498cd

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +221 -0
README.md ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - text-to-image
4
+ - stable-diffusion
5
+ - Diffusers
6
+ - image-generation
7
+ - flux
8
+ - safetensors
9
+ license: other
10
+ license_name: flux-1-dev-non-commercial-license
11
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
12
+ language:
13
+ - en
14
+ base_model: black-forest-labs/FLUX.1-dev
15
+ library_name: diffusers
16
+ ---
17
+ <style>
18
+ .title-container {
19
+ display: flex;
20
+ justify-content: center;
21
+ align-items: center;
22
+ height: 100vh; /* Adjust this value to position the title vertically */
23
+ }
24
+
25
+ .title {
26
+ font-size: 2.5em;
27
+ text-align: center;
28
+ color: #333;
29
+ font-family: 'Helvetica Neue', sans-serif;
30
+ text-transform: uppercase;
31
+ letter-spacing: 0.1em;
32
+ padding: 0.5em 0;
33
+ background: transparent;
34
+ }
35
+
36
+ .title span {
37
+ background: -webkit-linear-gradient(45deg, #ff7a52, #a5cff0);
38
+ -webkit-background-clip: text;
39
+ -webkit-text-fill-color: transparent;
40
+ }
41
+
42
+ .custom-table {
43
+ table-layout: fixed;
44
+ width: 100%;
45
+ border-collapse: collapse;
46
+ margin-top: 2em;
47
+ }
48
+
49
+ .custom-table td {
50
+ width: 50%;
51
+ vertical-align: top;
52
+ padding: 10px;
53
+ box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.15);
54
+ }
55
+
56
+ .custom-image-container {
57
+ position: relative;
58
+ width: 100%;
59
+ margin-bottom: 0em;
60
+ overflow: hidden;
61
+ border-radius: 10px;
62
+ transition: transform .7s;
63
+ }
64
+
65
+ .custom-image-container:hover {
66
+ transform: scale(1.05);
67
+ }
68
+
69
+ .custom-image {
70
+ width: 100%;
71
+ height: auto;
72
+ object-fit: cover;
73
+ border-radius: 10px;
74
+ transition: transform .7s;
75
+ margin-bottom: 0em;
76
+ }
77
+
78
+ .nsfw-filter {
79
+ filter: blur(8px);
80
+ transition: filter 0.3s ease;
81
+ }
82
+
83
+ .custom-image-container:hover .nsfw-filter {
84
+ filter: none;
85
+ }
86
+
87
+ .overlay {
88
+ position: absolute;
89
+ bottom: 0;
90
+ left: 0;
91
+ right: 0;
92
+ color: white;
93
+ width: 100%;
94
+ height: 40%;
95
+ display: flex;
96
+ flex-direction: column;
97
+ justify-content: center;
98
+ align-items: center;
99
+ font-size: 1vw;
100
+ font-style: bold;
101
+ text-align: center;
102
+ opacity: 0;
103
+ background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0) 100%);
104
+ transition: opacity .5s;
105
+ }
106
+
107
+ .custom-image-container:hover .overlay {
108
+ opacity: 1;
109
+ }
110
+
111
+ .overlay-text {
112
+ background: linear-gradient(45deg, #F1F8E8, #F1F8E8);
113
+ -webkit-background-clip: text;
114
+ color: transparent;
115
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
116
+ }
117
+
118
+ .overlay-subtext {
119
+ font-size: 0.75em;
120
+ margin-top: 0.5em;
121
+ font-style: italic;
122
+ }
123
+
124
+ .overlay,
125
+ .overlay-subtext {
126
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
127
+ }
128
+ </style>
129
+
130
+ <h1 class="title">
131
+ <span>Raemu Flux</span>
132
+ </h1>
133
+
134
+ <table class="custom-table">
135
+ <tr>
136
+ <td>
137
+ <div class="custom-image-container">
138
+ <img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/1HGNpzbTniF-lFbOaM8-X.png" alt="Sample Image 1">
139
+ <div class="overlay">
140
+ </div>
141
+ </div>
142
+ </td>
143
+ <td>
144
+ <div class="custom-image-container">
145
+ <img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/r4ji30duGN_Pjw1YzoXpY.png" alt="Sample Image 2">
146
+ <div class="overlay">
147
+ </div>
148
+ </div>
149
+ </td>
150
+ <td>
151
+ <div class="custom-image-container">
152
+ <img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/B1KO29e-pI1EhzEeXt7K_.png" alt="Sample Image 3">
153
+ <div class="overlay">
154
+ </div>
155
+ </div>
156
+ </td>
157
+ </tr>
158
+ <tr>
159
+ <td>
160
+ <div class="custom-image-container">
161
+ <img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/wMVR3wtR1M3I-FervhROr.png" alt="Sample Image 4">
162
+ <div class="overlay">
163
+ </div>
164
+ </div>
165
+ </td>
166
+ <td>
167
+ <div class="custom-image-container">
168
+ <img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/9LNfu1ChE9jzteNQWOz0n.png" alt="Sample Image 5">
169
+ <div class="overlay">
170
+ </div>
171
+ </div>
172
+ </td>
173
+ <td>
174
+ <div class="custom-image-container">
175
+ <img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/ElNjzqmQMHQIXuOys_hX8.png" alt="Sample Image 6">
176
+ <div class="overlay">
177
+ </div>
178
+ </div>
179
+ </td>
180
+ </tr>
181
+ </table>
182
+
183
+ ## Overview
184
+ **Raemu Flux** is a finetuned model built on top of Flux.1-dev, specifically focused on anime. It has been finetuned with dataset nearly 1,500 carefully curated, high-quality aesthetic anime images, resulting in noticeable improvements in anime scene rendering and visual quality.
185
+
186
+
187
+ ## Inference
188
+
189
+ ```python
190
+ import torch
191
+ from diffusers import FluxPipeline
192
+
193
+ pipe = FluxPipeline.from_pretrained("Raelina/Raemu-Flux", torch_dtype=torch.bfloat16)
194
+ # to run on low vram GPUs (i.e. between 4 and 32 GB VRAM)
195
+ pipe.enable_sequential_cpu_offload()
196
+ pipe.vae.enable_slicing()
197
+ pipe.vae.enable_tiling()
198
+
199
+ prompt = "A woman anime hold sign that says hello world"
200
+ image = pipe(
201
+ prompt,
202
+ width=896,
203
+ height=1152,
204
+ guidance_scale=3.5,
205
+ num_inference_steps=20,
206
+ max_sequence_length=512,
207
+ generator=torch.Generator("cpu").manual_seed(0)
208
+ ).images[0]
209
+
210
+ image.save("raemu-flux.png")
211
+ ```
212
+
213
+ ## Usage
214
+ Be sure to include **anime** in your prompt. otherwise, the output may appear realistic.
215
+ For example:
216
+ ```
217
+ A woman anime hold sign that says Hello World.
218
+ ```
219
+
220
+ ## License
221
+ The model falls under [flux-1-dev-non-commercial-license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)