Skip to content

Commit 2b5bc5b

Browse files
authored
[Doc] Fix path and and also import imageio (#9506)
* Fix bug * import imageio
1 parent bab1778 commit 2b5bc5b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/source/en/api/pipelines/text_to_video_zero.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ To generate a video from prompt, run the following Python code:
4040
```python
4141
import torch
4242
from diffusers import TextToVideoZeroPipeline
43+
import imageio
4344

4445
model_id = "stable-diffusion-v1-5/stable-diffusion-v1-5"
4546
pipe = TextToVideoZeroPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda")

docs/source/en/optimization/coreml.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ print(f"Model downloaded at {model_path}")
9595
Once you have downloaded a snapshot of the model, you can test it using Apple's Python script.
9696

9797
```shell
98-
python -m python_coreml_stable_diffusion.pipeline --prompt "a photo of an astronaut riding a horse on mars" -i models/coreml-stable-diffusion-v1-4_original_packages -o </path/to/output/image> --compute-unit CPU_AND_GPU --seed 93
98+
python -m python_coreml_stable_diffusion.pipeline --prompt "a photo of an astronaut riding a horse on mars" -i ./models/coreml-stable-diffusion-v1-4_original_packages/original/packages -o </path/to/output/image> --compute-unit CPU_AND_GPU --seed 93
9999
```
100100

101101
Pass the path of the downloaded checkpoint with `-i` flag to the script. `--compute-unit` indicates the hardware you want to allow for inference. It must be one of the following options: `ALL`, `CPU_AND_GPU`, `CPU_ONLY`, `CPU_AND_NE`. You may also provide an optional output path, and a seed for reproducibility.

0 commit comments

Comments
 (0)