--- license: apache-2.0 language: - en tags: - art --- 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-1-5-quantized", compile=False) pipe.reshape(batch_size=1, height=512, width=512, num_images_per_prompt=1) pipe.compile() prompt = "plant pokemon in jungle" output = pipe(prompt, num_inference_steps=50, output_type="pil") output.images[0].save("result.png") ```