Update README.md
Browse files
README.md
CHANGED
@@ -92,6 +92,7 @@ library_name: diffusers
|
|
92 |
```python
|
93 |
python single_inference.py \
|
94 |
--user_prompt 'A seaside harbor with bright sunlight and sparkling seawater, with many boats in the water. From an aerial view, the boats vary in size and color, some moving and some stationary. Fishing boats in the water suggest that this location might be a popular spot for docking fishing boats.' \
|
|
|
95 |
--vae your/path/to/vae \
|
96 |
--dit your/path/to/transformer \
|
97 |
--text_encoder your/path/to/text_encoder \
|
@@ -100,6 +101,14 @@ library_name: diffusers
|
|
100 |
--num_sampling_steps 100 \
|
101 |
--seed 42
|
102 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
|
104 |
# License
|
105 |
This repo is released under the Apache 2.0 License.
|
|
|
92 |
```python
|
93 |
python single_inference.py \
|
94 |
--user_prompt 'A seaside harbor with bright sunlight and sparkling seawater, with many boats in the water. From an aerial view, the boats vary in size and color, some moving and some stationary. Fishing boats in the water suggest that this location might be a popular spot for docking fishing boats.' \
|
95 |
+
--save_path ./output_videos/test_video.mp4
|
96 |
--vae your/path/to/vae \
|
97 |
--dit your/path/to/transformer \
|
98 |
--text_encoder your/path/to/text_encoder \
|
|
|
101 |
--num_sampling_steps 100 \
|
102 |
--seed 42
|
103 |
```
|
104 |
+
|
105 |
+
Use '--enable_cpu_offload' to offload the model into CPU for less GPU memory cost (about 9.3G, compared to 27.5G if CPU offload is not enabled), but the inference time will increase significantly.
|
106 |
+
|
107 |
+
5. (Optional) Interpolate the video to 30 FPS.
|
108 |
+
|
109 |
+
It is recommended to use [EMA-VFI](https://github.com/MCG-NJU/EMA-VFI) to interpolate the video from 15 FPS to 30 FPS.
|
110 |
+
|
111 |
+
For better visual quality, please use imageio to save the video.
|
112 |
|
113 |
# License
|
114 |
This repo is released under the Apache 2.0 License.
|