denk
commited on
Commit
•
23b1d98
1
Parent(s):
bc500e2
README
Browse files
README.md
CHANGED
@@ -1,3 +1,49 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
tags:
|
6 |
+
- cogvideox
|
7 |
+
- video-generation
|
8 |
+
- image-to-video
|
9 |
+
- diffusers
|
10 |
---
|
11 |
+
|
12 |
+
# cogvideox-2b-img2vid
|
13 |
+
|
14 |
+
### How to
|
15 |
+
Clone repo
|
16 |
+
```bash
|
17 |
+
git clone https://github.com/Nim-Video/cogvideox-2b-img2vid.git
|
18 |
+
cd cogvideox-2b-img2vid
|
19 |
+
```
|
20 |
+
|
21 |
+
Create venv
|
22 |
+
```bash
|
23 |
+
python -m venv venv
|
24 |
+
source venv/bin/activate
|
25 |
+
```
|
26 |
+
|
27 |
+
Install requirements
|
28 |
+
```bash
|
29 |
+
pip install -r requirements.txt
|
30 |
+
```
|
31 |
+
|
32 |
+
### Simple examples
|
33 |
+
#### Inference with cli
|
34 |
+
```bash
|
35 |
+
python -m inference.cli_demo \
|
36 |
+
--video_path "resources/truck.jpg" \
|
37 |
+
--prompt "A truck is driving through a dirt road, showcasing its capability for off-roading." \
|
38 |
+
--model_path NimVideo/cogvideox-2b-img2vid
|
39 |
+
```
|
40 |
+
|
41 |
+
#### Inference with Gradio
|
42 |
+
```bash
|
43 |
+
python -m inference.gradio_web_demo \
|
44 |
+
--model_path NimVideo/cogvideox-2b-img2vid
|
45 |
+
```
|
46 |
+
|
47 |
+
## Acknowledgements
|
48 |
+
Original code and models [CogVideoX](https://github.com/THUDM/CogVideo/tree/main).
|
49 |
+
|