echarlaix HF staff commited on
Commit
e2b93b6
1 Parent(s): 9e26347

Fix model loading step in code snippet

Browse files
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.