Hopenet / README.md
hysts's picture
hysts HF Staff
Add files
373e0bb
# Hopenet
- https://github.com/natanielruiz/deep-head-pose
- https://drive.google.com/file/d/1EJPu2sOAwrfuamTitTkw2xJ2ipmMsmD3/view
- https://drive.google.com/file/d/16OZdRULgUpceMKZV6U9PNFiigfjezsCY/view
- https://drive.google.com/file/d/1m25PrSE7g9D2q2XJVMR6IA7RaCvWSzCR/view
## Note
```python
import pathlib
import torch
paths = sorted(pathlib.Path('orig').glob('*'))
out_dir = pathlib.Path('models')
out_dir.mkdir(exist_ok=True)
for path in paths:
ckpt = torch.load(path, map_location='cpu')
torch.save(ckpt, out_dir / path.name)
```