https://github.com/vida-nyu/ptg-server-ml
The machine learning model deployment
https://github.com/vida-nyu/ptg-server-ml
Last synced: 3 months ago
JSON representation
The machine learning model deployment
- Host: GitHub
- URL: https://github.com/vida-nyu/ptg-server-ml
- Owner: VIDA-NYU
- License: mit
- Created: 2022-06-24T19:34:28.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-08T19:06:59.000Z (8 months ago)
- Last Synced: 2025-01-24T15:36:32.440Z (5 months ago)
- Language: Jupyter Notebook
- Size: 4.52 MB
- Stars: 1
- Watchers: 21
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PTG Server-side Machine Learning
## Install
```bash
# git clone (includes the model repos too)
git clone --recursive [email protected]:VIDA-NYU/ptg-server-ml.git
# install basic (no model dependencies)
pip install -e .export MODEL_DIR=models # where do you want to store the weights?
```## EgoVLP
Zero-shot action recognition
[Repo](https://github.com/showlab/EgoVLP) |
[Checkpoint (2GB)](https://drive.google.com/file/d/1-SOQeXc-xSn544sJzgFLhC95hkQsm0BR)```bash
pip install -e '.[egovlp]'# download the weights
pip install gdown
gdown https://drive.google.com/uc?id=1-SOQeXc-xSn544sJzgFLhC95hkQsm0BR
mv epic_mir_plus.pth $MODEL_DIR/# to test with a mp4 file
python -m ptgprocess.egovlp ./video.mp4 recipe:coffee:steps_simple
```## Detic
Zero-shot object detection
[Repo](https://github.com/facebookresearch/Detic) |
[Checkpoint](https://dl.fbaipublicfiles.com/detic/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth)```bash
pip install -e '.[detic]'
# model downloads its own weights# to test with a mp4 file
python -m ptgprocess.detic ./video.mp4 recipe:pinwheels:steps_simple
```## EgoHOS
Hand-object interactions
[Repo](https://github.com/owenzlz/EgoHOS) |
[Checkpoint (5GB)](https://drive.google.com/uc?id=1LNMQ6TGf1QaCjMgTExPzl7lFFs-yZyqX)```bash
pip install -e '.[egohos]'# download the weights
pip install gdown
gdown https://drive.google.com/uc?id=1LNMQ6TGf1QaCjMgTExPzl7lFFs-yZyqX
unzip work_dirs.zip && rm work_dirs.zip
mv work_dirs $MODEL_DIR/egohos# to test with a mp4 file
python -m ptgprocess.egohos ./video.mp4
python -m ptgprocess.egohos ./video.mp4 --out-file # save to file
```