Downloads · 30 days
2
7% of all-time downloads
aifeifei798/DarkIdol-flux-v1.2
DarkIdol-flux-v1.2 is a text-to-image model from aifeifei798. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as other.
- Online Test https://huggingface.co/spaces/aifeifei798/DarkIdol-flux - Online Test https://huggingface.co/spaces/aifeifei798/allinone-DarkIdol-flux <table <thead <tr <th896 x 1152 (8 steps)</th </tr </thead <tbody <t…
Downloads · 30 days
2
7% of all-time downloads
All-time downloads
29
Public
Parameters
11.9B
33.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors33.7 GB · 100%
From the Hugging Face model README
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">