# 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?
Zero-shot action recognition
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
Zero-shot object detection
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
Hand-object interactions
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