Views
No views yet
1from diffusers import StableDiffusionPipeline
2
3# Load the model
4model_id = "HyperX-Sentience/luna-revamped"
5pipeline = StableDiffusionPipeline.from_pretrained(model_id)
6pipeline.to("cuda")
7
8# Generate an image
9prompt = "A photorealistic portrait of an astronaut in a futuristic suit"
10image = pipeline(prompt).images[0]
11
12# Save the image
13image.save("output.png")