Update README.md
Browse files
README.md
CHANGED
@@ -1,49 +1,51 @@
|
|
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 |
-
|
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 |
-
|
|
|
|
|
|
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 |
+
<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/63fde49f6315a264aba6a7ed/8vOYgS-Wm51BgOKv4Jnpp.mp4"></video>
|
15 |
+
|
16 |
+
### How to
|
17 |
+
Clone repo
|
18 |
+
```bash
|
19 |
+
git clone https://github.com/Nim-Video/cogvideox-2b-img2vid.git
|
20 |
+
cd cogvideox-2b-img2vid
|
21 |
+
```
|
22 |
+
|
23 |
+
Create venv
|
24 |
+
```bash
|
25 |
+
python -m venv venv
|
26 |
+
source venv/bin/activate
|
27 |
+
```
|
28 |
+
|
29 |
+
Install requirements
|
30 |
+
```bash
|
31 |
+
pip install -r requirements.txt
|
32 |
+
```
|
33 |
+
|
34 |
+
### Simple examples
|
35 |
+
#### Inference with cli
|
36 |
+
```bash
|
37 |
+
python -m inference.cli_demo \
|
38 |
+
--video_path "resources/truck.jpg" \
|
39 |
+
--prompt "A truck is driving through a dirt road, showcasing its capability for off-roading." \
|
40 |
+
--model_path NimVideo/cogvideox-2b-img2vid
|
41 |
+
```
|
42 |
+
|
43 |
+
#### Inference with Gradio
|
44 |
+
```bash
|
45 |
+
python -m inference.gradio_web_demo \
|
46 |
+
--model_path NimVideo/cogvideox-2b-img2vid
|
47 |
+
```
|
48 |
+
|
49 |
+
## Acknowledgements
|
50 |
+
Original code and models [CogVideoX](https://github.com/THUDM/CogVideo/tree/main).
|
51 |
+
|