To install the requirements for this demo, do pip install "optimum-intel[openvino, diffusers]". 

```python
from optimum.intel.openvino import OVStableDiffusionPipeline

pipe = OVStableDiffusionPipeline.from_pretrained("OpenVINO/stable-diffusion-2-1-quantized", compile=False)
pipe.reshape(batch_size=1, height=512, width=512, num_images_per_prompt=1)
pipe.compile()

prompt = "sailing ship in storm by Rembrandt"
output = pipe(prompt, num_inference_steps=50, output_type="pil")
output.images[0].save("result.png")
```
{}
region:us
TAGS
#region-us 

To install the requirements for this demo, do pip install "optimum-intel[openvino, diffusers]". 


TAGS
#region-us 

TAGS
#region-us 
