|
--- |
|
tags: |
|
- text-to-image |
|
- stable-diffusion |
|
- Diffusers |
|
- image-generation |
|
- flux |
|
- safetensors |
|
license: other |
|
license_name: flux-1-dev-non-commercial-license |
|
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md |
|
language: |
|
- en |
|
base_model: black-forest-labs/FLUX.1-dev |
|
library_name: diffusers |
|
--- |
|
<style> |
|
.title-container { |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
height: 100vh; /* Adjust this value to position the title vertically */ |
|
} |
|
|
|
.title { |
|
font-size: 2.5em; |
|
text-align: center; |
|
color: #333; |
|
font-family: 'Helvetica Neue', sans-serif; |
|
text-transform: uppercase; |
|
letter-spacing: 0.1em; |
|
padding: 0.5em 0; |
|
background: transparent; |
|
} |
|
|
|
.title span { |
|
background: -webkit-linear-gradient(45deg, #ff7a52, #a5cff0); |
|
-webkit-background-clip: text; |
|
-webkit-text-fill-color: transparent; |
|
} |
|
|
|
.custom-table { |
|
table-layout: fixed; |
|
width: 100%; |
|
border-collapse: collapse; |
|
margin-top: 2em; |
|
} |
|
|
|
.custom-table td { |
|
width: 50%; |
|
vertical-align: top; |
|
padding: 10px; |
|
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.15); |
|
} |
|
|
|
.custom-image-container { |
|
position: relative; |
|
width: 100%; |
|
margin-bottom: 0em; |
|
overflow: hidden; |
|
border-radius: 10px; |
|
transition: transform .7s; |
|
} |
|
|
|
.custom-image-container:hover { |
|
transform: scale(1.05); |
|
} |
|
|
|
.custom-image { |
|
width: 100%; |
|
height: auto; |
|
object-fit: cover; |
|
border-radius: 10px; |
|
transition: transform .7s; |
|
margin-bottom: 0em; |
|
} |
|
|
|
.nsfw-filter { |
|
filter: blur(8px); |
|
transition: filter 0.3s ease; |
|
} |
|
|
|
.custom-image-container:hover .nsfw-filter { |
|
filter: none; |
|
} |
|
|
|
.overlay { |
|
position: absolute; |
|
bottom: 0; |
|
left: 0; |
|
right: 0; |
|
color: white; |
|
width: 100%; |
|
height: 40%; |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: center; |
|
align-items: center; |
|
font-size: 1vw; |
|
font-style: bold; |
|
text-align: center; |
|
opacity: 0; |
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0) 100%); |
|
transition: opacity .5s; |
|
} |
|
|
|
.custom-image-container:hover .overlay { |
|
opacity: 1; |
|
} |
|
|
|
.overlay-text { |
|
background: linear-gradient(45deg, #F1F8E8, #F1F8E8); |
|
-webkit-background-clip: text; |
|
color: transparent; |
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); |
|
} |
|
|
|
.overlay-subtext { |
|
font-size: 0.75em; |
|
margin-top: 0.5em; |
|
font-style: italic; |
|
} |
|
|
|
.overlay, |
|
.overlay-subtext { |
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); |
|
} |
|
</style> |
|
|
|
<h1 class="title"> |
|
<span>Raemu Flux</span> |
|
</h1> |
|
|
|
<table class="custom-table"> |
|
<tr> |
|
<td> |
|
<div class="custom-image-container"> |
|
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/1HGNpzbTniF-lFbOaM8-X.png" alt="Sample Image 1"> |
|
<div class="overlay"> |
|
</div> |
|
</div> |
|
</td> |
|
<td> |
|
<div class="custom-image-container"> |
|
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/r4ji30duGN_Pjw1YzoXpY.png" alt="Sample Image 2"> |
|
<div class="overlay"> |
|
</div> |
|
</div> |
|
</td> |
|
<td> |
|
<div class="custom-image-container"> |
|
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/B1KO29e-pI1EhzEeXt7K_.png" alt="Sample Image 3"> |
|
<div class="overlay"> |
|
</div> |
|
</div> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td> |
|
<div class="custom-image-container"> |
|
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/wMVR3wtR1M3I-FervhROr.png" alt="Sample Image 4"> |
|
<div class="overlay"> |
|
</div> |
|
</div> |
|
</td> |
|
<td> |
|
<div class="custom-image-container"> |
|
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/9LNfu1ChE9jzteNQWOz0n.png" alt="Sample Image 5"> |
|
<div class="overlay"> |
|
</div> |
|
</div> |
|
</td> |
|
<td> |
|
<div class="custom-image-container"> |
|
<img class="custom-image" src="https://cdn-uploads.huggingface.co/production/uploads/64b24543eec33e27dc9a6eca/ElNjzqmQMHQIXuOys_hX8.png" alt="Sample Image 6"> |
|
<div class="overlay"> |
|
</div> |
|
</div> |
|
</td> |
|
</tr> |
|
</table> |
|
|
|
## Overview |
|
**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. |
|
|
|
|
|
## Inference |
|
|
|
```python |
|
import torch |
|
from diffusers import FluxPipeline |
|
|
|
pipe = FluxPipeline.from_pretrained("Raelina/Raemu-Flux", torch_dtype=torch.bfloat16) |
|
# to run on low vram GPUs (i.e. between 4 and 32 GB VRAM) |
|
pipe.enable_sequential_cpu_offload() |
|
pipe.vae.enable_slicing() |
|
pipe.vae.enable_tiling() |
|
|
|
prompt = "A woman anime hold sign that says hello world" |
|
image = pipe( |
|
prompt, |
|
width=896, |
|
height=1152, |
|
guidance_scale=3.5, |
|
num_inference_steps=20, |
|
max_sequence_length=512, |
|
generator=torch.Generator("cpu").manual_seed(0) |
|
).images[0] |
|
|
|
image.save("raemu-flux.png") |
|
``` |
|
|
|
## Usage |
|
Be sure to include **anime** in your prompt. otherwise, the output may appear realistic. |
|
For example: |
|
``` |
|
A woman anime hold sign that says Hello World. |
|
``` |
|
|
|
## License |
|
The model falls under [flux-1-dev-non-commercial-license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md) |