Skip to content

VIDA-NYU/ptg-server-ml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTG Server-side Machine Learning

Install

# git clone (includes the model repos too)
git clone --recursive git@github.com: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 | Checkpoint (2GB)

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 | Checkpoint

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 | Checkpoint (5GB)

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

About

The machine learning model deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages