This is a course project for CIS II Spring 2022.
The docker image for this project is based on nvidia/cuda:11.3.1-devel-ubuntu18.04
. Refer to dockerfiles/pytorch.txt
for PyTorch version and dockerfiles/requirements.txt
for other dependencies.
docker.sh
provides basic CML options to manage docker image and container. See usage details with ./docker.sh -h
- run container:
./docker.sh -r
- new terminal in running contrainer: `./docker.sh -n
- delete container:
./docker.sh -d
- All dependencies are managed with docker. Do not add anything to the server.
- ./docker.sh -b builds the docker image, it will delete current container first, make sure no one is using the container before doing that.
- Use docker ps to list running container, if the container is already running, use ./docker.sh -n to open a new terminal in the running container. Running ./docker.sh -r in this case will attach you to other's terminal.
- Open a tmux session, then access docker container (either ./docker.sh -r or -n).
To use full functionality of VSCode, developing in docker container is recommended. Follow steps below to connect to a remote container:
- start a container in remote server
- use Remote-SSH extension to connect to remote server (a new VSCode window pops up)
- open a folder in the remote server (in the VSCode widow from previous step)
- use Remote-Container extension to connect to the running container in remote server
For each model save per video results in a single pickle file with convention [(video_index,pred,ground_truth)...]
- Run bars_cms.py to draw bar plots, generate CMs and model summaries for all three models.
- Run bar_cm.py to draw bar plot, generate CM and model summary fot one single model.
- Need to modify model name and pickle file name in these files if not using conventional names: "SVRC, TeCNO, TRANS".