Diffusers How to use Himanshu806/FluxHyperReal with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Himanshu806/FluxHyperReal", dtype=torch.bfloat16, device_map="cuda")
prompt = "A hyper-realistic portrait of a white American man, mid-30s, strong jawline, short dark brown hair, piercing blue eyes, light stubble, and a confident yet approachable expression. His skin has natural pores, slight imperfections, and a subtle sheen from soft lighting. He is wearing a tailored navy-blue suit with a crisp white dress shirt, top button undone. The lighting is cinematic, with a soft key light from the left casting realistic shadows and depth. The background is blurred, featuring a warm, golden-hour urban cityscape with soft bokeh lights. The image is ultra-detailed, 6K resolution, hyperrealistic rendering, with perfect facial symmetry, depth of field, volumetric lighting, and cinematic color grading. The focus is on the subject's face, ensuring an expressive, lifelike result with intricate skin textures and natural reflections."
image = pipe(prompt).images[0]