katuni4ka echarlaix HF staff commited on
Commit
5f74b53
1 Parent(s): 9e26347

fix-code-snippet (#1)

Browse files

- Fix model loading step in code snippet (e2b93b603043eda62c59d5fd9b895b7284dff945)


Co-authored-by: Ella Charlaix <[email protected]>

Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -39,10 +39,10 @@ pip install optimum[openvino]
39
  2. Run model inference:
40
 
41
  ```
42
- from optimum.intel.openvino import OVStableDiffusionPipeline
43
 
44
  model_id = "OpenVINO/LCM_Dreamshaper_v7-int8-ov"
45
- pipeline = OVStableDiffusionPipeline.from_pretrained(model_id)
46
 
47
  prompt = "sailing ship in storm by Rembrandt"
48
  images = pipeline(prompt, num_inference_steps=4).images
@@ -61,4 +61,4 @@ The original model is distributed under [mit](https://choosealicense.com/license
61
 
62
  ## Disclaimer
63
 
64
- Intel is committed to respecting human rights and avoiding causing or contributing to adverse impacts on human rights. See [Intel’s Global Human Rights Principles](https://www.intel.com/content/dam/www/central-libraries/us/en/documents/policy-human-rights.pdf). Intel’s products and software are intended only to be used in applications that do not cause or contribute to adverse impacts on human rights.
 
39
  2. Run model inference:
40
 
41
  ```
42
+ from optimum.intel import OVLatentConsistencyModelPipeline
43
 
44
  model_id = "OpenVINO/LCM_Dreamshaper_v7-int8-ov"
45
+ pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id)
46
 
47
  prompt = "sailing ship in storm by Rembrandt"
48
  images = pipeline(prompt, num_inference_steps=4).images
 
61
 
62
  ## Disclaimer
63
 
64
+ Intel is committed to respecting human rights and avoiding causing or contributing to adverse impacts on human rights. See [Intel’s Global Human Rights Principles](https://www.intel.com/content/dam/www/central-libraries/us/en/documents/policy-human-rights.pdf). Intel’s products and software are intended only to be used in applications that do not cause or contribute to adverse impacts on human rights.