How to use gagan3012/gagan with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("gagan3012/gagan", dtype=torch.bfloat16, device_map="cuda") prompt = "photo of a handsome man posing" image = pipe(prompt).images[0]
Test enoder was not trained.
Base model