How to use atfortes/BokehDiffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("atfortes/BokehDiffusion", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0]
I tried it on an RTX 4090 with 24GB of VRAM, but it reported insufficient memory(OOM). After switching to a hybrid GPU-CPU execution mode, the final output became incorrect.
using the L20 with cuda 12.2, the model runs bad result in the demo code
· Sign up or log in to comment