DarkIdol-flux-v1.2

Inference code

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")

Documentation

Downloads last month
16
Inference Examples
Examples
This model is not currently available via any of the supported third-party Inference Providers, and the model is not deployed on the HF Inference API.

Spaces using aifeifei798/DarkIdol-flux-v1.2 2