Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,34 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
+
|
5 |
+
This is the official repository for MotionDirector weights. Code and details are at: https://github.com/showlab/MotionDirector.git
|
6 |
+
|
7 |
+
|
8 |
+
Clone the repo as follows:
|
9 |
+
|
10 |
+
```
|
11 |
+
git lfs clone --depth 1 --single-branch --branch main https://huggingface.co/ruizhaocv/MotionDirector.git ./outputs
|
12 |
+
```
|
13 |
+
|
14 |
+
After installing dependencies, run the following command to generate a.mp4 video:
|
15 |
+
|
16 |
+
|
17 |
+
```
|
18 |
+
#!/bin/bash
|
19 |
+
|
20 |
+
eval "$(conda shell.bash hook)"
|
21 |
+
conda activate motiondirector
|
22 |
+
|
23 |
+
MODEL_PATH=./models/zeroscope_v2_576w
|
24 |
+
PROMPT="A lion is running past the pyramids."
|
25 |
+
python MotionDirector_inference.py \
|
26 |
+
--model $MODEL_PATH \
|
27 |
+
--prompt "$PROMPT" \
|
28 |
+
--checkpoint_folder ./outputs/train/car_16/ \
|
29 |
+
--checkpoint_index 150 \
|
30 |
+
--noise_prior 0.5 \
|
31 |
+
--seed 431554 | tee ./local_log.log
|
32 |
+
```
|
33 |
+
|
34 |
+
The generated .mp4 is then stored under the inference directory.
|