Views
No views yet




1from diffusers import StableDiffusionPipeline
2import torch
3model_id = "prompthero/openjourney"
4pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
5pipe = pipe.to("cuda")
6prompt = "retro serie of different cars with different colors and shapes, mdjrny-v4 style"
7image = pipe(prompt).images[0]
8image.save("./retro_cars.png")