AlexWortega
commited on
Commit
β’
c152cf2
1
Parent(s):
6d29667
Update README.md
Browse files
README.md
CHANGED
@@ -9,54 +9,68 @@ tags:
|
|
9 |
- diffusers
|
10 |
---
|
11 |
|
12 |
-
# cogvideox-2b-img2vid
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/63fde49f6315a264aba6a7ed/8vOYgS-Wm51BgOKv4Jnpp.mp4"></video>
|
17 |
|
18 |
-
###
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
</p>
|
22 |
-
<p>
|
23 |
-
<a href="cogvideox-2b-img2vid-workflow.json"
|
24 |
</p>
|
25 |
-
ComfyUI custom node can be found <a href="https://github.com/Nim-Video/ComfyUI-CogVideoXWrapper">here</a>.
|
26 |
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
|
|
29 |
```bash
|
30 |
git clone https://github.com/Nim-Video/cogvideox-2b-img2vid.git
|
31 |
cd cogvideox-2b-img2vid
|
32 |
```
|
33 |
-
|
34 |
-
Create venv
|
35 |
```bash
|
36 |
python -m venv venv
|
37 |
source venv/bin/activate
|
38 |
```
|
39 |
-
|
40 |
-
Install requirements
|
41 |
```bash
|
42 |
pip install -r requirements.txt
|
43 |
```
|
44 |
-
|
45 |
-
### Simple examples
|
46 |
-
#### Inference with cli
|
47 |
-
```bash
|
48 |
-
python -m inference.cli_demo \
|
49 |
-
--video_path "resources/truck.jpg" \
|
50 |
-
--prompt "A truck is driving through a dirt road, showcasing its capability for off-roading." \
|
51 |
-
--model_path NimVideo/cogvideox-2b-img2vid
|
52 |
-
```
|
53 |
|
54 |
-
|
55 |
-
```bash
|
56 |
-
python -m inference.gradio_web_demo \
|
57 |
-
--model_path NimVideo/cogvideox-2b-img2vid
|
58 |
-
```
|
59 |
|
60 |
-
|
61 |
-
Original code and models [CogVideoX](https://github.com/THUDM/CogVideo/tree/main).
|
62 |
|
|
|
9 |
- diffusers
|
10 |
---
|
11 |
|
|
|
12 |
|
13 |
+
# π₯ CogVideoX-2B-Img2Vid π
|
14 |
+
|
15 |
+
### Fine-tuned on 10 million videos for high-quality generation at SBS levels comparable to CogVideoX-5B! π
|
16 |
+
|
17 |
+
|
18 |
+
# Model Highlights π
|
19 |
+
|
20 |
+
- Fine-tuned on 10 million videos for exceptional image-to-video generation quality.
|
21 |
+
|
22 |
+
- Performance benchmarked to match SBS standards at CogVideoX-5B i2v level.
|
23 |
+
|
24 |
+
|
25 |
+
## Usage Examples π₯
|
26 |
+
|
27 |
+
### Try it for free on [nim.video](https://nim.video)
|
28 |
|
29 |
<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/63fde49f6315a264aba6a7ed/8vOYgS-Wm51BgOKv4Jnpp.mp4"></video>
|
30 |
|
31 |
+
### CLI Inference π
|
32 |
+
```bash
|
33 |
+
python -m inference.cli_demo \
|
34 |
+
--video_path "resources/truck.jpg" \
|
35 |
+
--prompt "A truck is driving through a dirt road, showcasing its capability for off-roading." \
|
36 |
+
--model_path NimVideo/cogvideox-2b-img2vid
|
37 |
+
|
38 |
+
```
|
39 |
+
## Gradio Inference with Web Demo π₯οΈ
|
40 |
+
```bash
|
41 |
+
python -m inference.gradio_web_demo \
|
42 |
+
--model_path NimVideo/cogvideox-2b-img2vid
|
43 |
+
```
|
44 |
+
### ComfyUI Example π‘
|
45 |
+
|
46 |
+
<p align="center">
|
47 |
+
<img src="cogvideox-2b-img2vid-workflow.png" width="800" height="400" alt="Workflow Preview" title="Workflow Example Preview"/>
|
48 |
</p>
|
49 |
+
<p align="center">
|
50 |
+
<a href="cogvideox-2b-img2vid-workflow.json">π JSON Workflow Example</a>
|
51 |
</p>
|
|
|
52 |
|
53 |
+
|
54 |
+
### π§ [Find the custom ComfyUI node here.](https://github.com/Nim-Video/ComfyUI-CogVideoXWrapper)
|
55 |
+
|
56 |
+
## Quick Start π
|
57 |
+
|
58 |
+
1οΈβ£ Clone the Repository
|
59 |
```bash
|
60 |
git clone https://github.com/Nim-Video/cogvideox-2b-img2vid.git
|
61 |
cd cogvideox-2b-img2vid
|
62 |
```
|
63 |
+
2οΈβ£ Set up a Virtual Environment
|
|
|
64 |
```bash
|
65 |
python -m venv venv
|
66 |
source venv/bin/activate
|
67 |
```
|
68 |
+
3οΈβ£ Install Requirements
|
|
|
69 |
```bash
|
70 |
pip install -r requirements.txt
|
71 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
+
## Acknowledgements π
|
|
|
|
|
|
|
|
|
74 |
|
75 |
+
This project builds on the foundational work of [CogVideoX](https://github.com/THUDM/CogVideo/tree/main).
|
|
|
76 |
|