How to use stabilityai/stable-diffusion-3-medium-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0]
How to perform parallel inference? When I use the deployed service of pipeline at the same time, SD3 will report an error, which is:dt = self.sigmas[self.step_index + 1] - sigma_hatIndexError: index 29 is out of bounds for dimension 0 with size 29
· Sign up or log in to comment