Skip to content

Commit

Permalink
Update README for editing
Browse files Browse the repository at this point in the history
  • Loading branch information
LinghaoChan authored Nov 4, 2024
1 parent 10c0f1b commit 429ed8d
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,45 @@ Please replace `$EXP_DIR` with the experiment directory name.



## 🔧 Downstream Editing Applications


<details>
<summary><b>Deploy the demo locally </b></summary>

Our project is supported by the latest Gradio 5, which provides a user-friendly interface for motion editing. The demo is available at [HuggingFace](https://huggingface.co/spaces/EvanTHU/MotionCLR). If you want to run the demo locally, please refer to the following instructions:

```bash
pip install gradio --upgrade
```

Launch the demo:
```python
python app.py
```
</details>



<details>
<summary><b>Interaction with commands</b></summary>

You can also use generate or edit the motion via command line. The command is the same as the generation command:

```bash
python -m scripts.generate --input_text ./assets/prompts-replace.txt \
--motion_length 8 \
--self_attention \
--no_eff \
--edit_mode \
--opt_path ./checkpoints/t2m/$EXP_DIR/opt.txt
```

Besides, you also need to edit the configuration in `./options/edit.yaml` to specify the editing mode. The detailed clarification of the configuration can be found in the comment of the configuration file.
</details>


## 🔧 Downstream Editing Applications

Due to some issues with latest gradio 5, MotionCLR v1-preview huggingface demo for motion editing will be supported next week.



Expand Down

0 comments on commit 429ed8d

Please sign in to comment.