How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("SimpleTuner/hdit-plus-512px-edit", dtype=torch.bfloat16, device_map="cuda")

prompt = "{\"high_level_description\":\"Alien planet, strange rock formations, glowing plants, bizarre creatures, surreal atmosphere\",\"style_description\":{\"aesthetics\":\"Color illustration\",\"lighting\":\"Bioluminescent blue light\",\"medium\":\"Digital illustration\",\"art_style\":\"Illustration\",\"color_palette\":[\"#665599\",\"#44EECC\"]},\"compositional_deconstruction\":{\"background\":\"A violet horizon beneath a starry sky\",\"elements\":[{\"type\":\"obj\",\"bbox\":[140,150,845,870],\"desc\":\"Jagged rocks rising between glowing plants\",\"color_palette\":[\"#665599\",\"#44EECC\"]}]}}"
image = pipe(prompt).images[0]

Not-For-All-Audiences

This repository has been marked as containing sensitive content and may contain potentially harmful and sensitive information.

View model card