Instructions to use zai-org/CogVideoX1.5-5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zai-org/CogVideoX1.5-5B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("zai-org/CogVideoX1.5-5B", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
zR commited on
use original sample_height and sample_width
Browse files- transformer/config.json +2 -2
transformer/config.json
CHANGED
|
@@ -18,8 +18,8 @@
|
|
| 18 |
"patch_size": 2,
|
| 19 |
"patch_size_t": 2,
|
| 20 |
"sample_frames": 81,
|
| 21 |
-
"sample_height":
|
| 22 |
-
"sample_width":
|
| 23 |
"spatial_interpolation_scale": 1.875,
|
| 24 |
"temporal_compression_ratio": 4,
|
| 25 |
"temporal_interpolation_scale": 1.0,
|
|
|
|
| 18 |
"patch_size": 2,
|
| 19 |
"patch_size_t": 2,
|
| 20 |
"sample_frames": 81,
|
| 21 |
+
"sample_height": 96,
|
| 22 |
+
"sample_width": 170,
|
| 23 |
"spatial_interpolation_scale": 1.875,
|
| 24 |
"temporal_compression_ratio": 4,
|
| 25 |
"temporal_interpolation_scale": 1.0,
|