prompt = "A photograph of an astronaut riding a horse on Mars, high resolution, high definition."
Next, we create a generator from a random seed that will ensure that we can generate similar images as well as run the pipeline:


	Copied
generator = torch.Generator(device="cuda").manual_seed(8)
image = pipeline(prompt, generator=generator).images[0]
image




Changing the scheduler
	
Now we show how easy it is to change the scheduler of a pipeli