Upload folder using huggingface_hub
Browse files- README.md +40 -0
- motioncritic_pre.pth +3 -0
README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- motion-generation
|
| 5 |
+
- human-motion
|
| 6 |
+
- preference-learning
|
| 7 |
+
- rlhf
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# MotionCritic
|
| 11 |
+
|
| 12 |
+
Pretrained critic model for **"Aligning Human Motion Generation with Human Perceptions"** (ICLR 2025).
|
| 13 |
+
|
| 14 |
+
[[Paper]](https://arxiv.org/abs/2407.02272) [[GitHub]](https://github.com/ou524u/MotionCritic) [[Project Page]](https://motioncritic.github.io/)
|
| 15 |
+
|
| 16 |
+
## Usage
|
| 17 |
+
|
| 18 |
+
```python
|
| 19 |
+
from lib.model.load_critic import load_critic
|
| 20 |
+
from parsedata import into_critic
|
| 21 |
+
import torch
|
| 22 |
+
|
| 23 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 24 |
+
critic_model = load_critic("motioncritic_pre.pth", device)
|
| 25 |
+
|
| 26 |
+
# motion: [bs, 25, 6, frame], rot6d
|
| 27 |
+
preprocessed = into_critic(motion) # [bs, frame, 25, 3], axis-angle
|
| 28 |
+
scores = critic_model.module.batch_critic(preprocessed)
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Citation
|
| 32 |
+
|
| 33 |
+
```bibtex
|
| 34 |
+
@inproceedings{motioncritic2025,
|
| 35 |
+
title={Aligning Motion Generation with Human Perceptions},
|
| 36 |
+
author={Wang, Haoru and Zhu, Wentao and Miao, Luyi and Xu, Yishu and Gao, Feng and Tian, Qi and Wang, Yizhou},
|
| 37 |
+
booktitle={International Conference on Learning Representations (ICLR)},
|
| 38 |
+
year={2025}
|
| 39 |
+
}
|
| 40 |
+
```
|
motioncritic_pre.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b846f9adf61b8cc2cae84e567add0a086223b5a9ea3c483746216ebcdf43e668
|
| 3 |
+
size 273673513
|