File size: 1,909 Bytes
5e88780
 
 
 
 
 
 
 
 
 
 
 
c152cf2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6d29667
5e88780
 
c152cf2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4914467
c152cf2
 
4914467
 
c152cf2
 
 
 
 
 
5e88780
 
 
 
c152cf2
5e88780
 
 
 
c152cf2
5e88780
 
 
 
c152cf2
5e88780
c152cf2
5e88780
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
license: apache-2.0
language:
  - en
tags:
- cogvideox
- video-generation
- image-to-video
- diffusers
---


# πŸŽ₯ CogVideoX-2B-Img2Vid πŸš€

### Fine-tuned on 10 million videos for high-quality generation at SBS levels comparable to CogVideoX-5B! 🌟


# Model Highlights 🌟

- Fine-tuned on 10 million videos for exceptional image-to-video generation quality.

- Performance benchmarked to match SBS standards at CogVideoX-5B i2v level.


## Usage Examples πŸ”₯

### Try it for free on [nim.video](https://nim.video)

<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/63fde49f6315a264aba6a7ed/8vOYgS-Wm51BgOKv4Jnpp.mp4"></video>

### CLI Inference 🌐
```bash
python -m inference.cli_demo \
    --video_path "resources/truck.jpg" \
    --prompt "A truck is driving through a dirt road, showcasing its capability for off-roading." \
    --model_path NimVideo/cogvideox-2b-img2vid

```
## Gradio Inference with Web Demo πŸ–₯️
```bash
python -m inference.gradio_web_demo \
    --model_path NimVideo/cogvideox-2b-img2vid
```
### ComfyUI Example πŸ’‘

<p align="center">
    <img src="cogvideox-2b-img2vid-workflow.png" width="800" height="400" alt="Workflow Preview" title="Workflow Example Preview"/>
</p>
<p align="center">
    <a href="cogvideox-2b-img2vid-workflow.json">πŸ”— JSON Workflow Example</a>
</p>


### πŸ”§ [Find the custom ComfyUI node here.](https://github.com/Nim-Video/ComfyUI-CogVideoXWrapper)

## Quick Start πŸš€

1️⃣ Clone the Repository
```bash
git clone https://github.com/Nim-Video/cogvideox-2b-img2vid.git
cd cogvideox-2b-img2vid
```
2️⃣ Set up a Virtual Environment
```bash
python -m venv venv
source venv/bin/activate
```
3️⃣ Install Requirements
```bash
pip install -r requirements.txt
```

## Acknowledgements πŸ™

This project builds on the foundational work of [CogVideoX](https://github.com/THUDM/CogVideo/tree/main).