- The video for demo inference is already included in the repo
- Data for training and evaluation have to be downloaded from source due to copyright issues. The video for demo inference is enough to reproduce the below errors
git clone https://github.com/microsoft/SwinBERT.git
cd SwinBERT
On HAC machine
conda create -n swinbert python=3.8
conda activate swinbert
- Reproduce the CUDA out of memory error
First, follow README.md to the step Before Running Code: Launch Docker Container. After that run
export REPO_DIR=$PWD
DATASETS=$REPO_DIR'/datasets/'
MODELS=$REPO_DIR'/models/'
OUTPUT_DIR=$REPO_DIR'/output/'
source launch_container.sh $DATASETS $MODELS $OUTPUT_DIR
- Reproduce Could not install packages due to an OSError: [Errno 2] No such file or directory: '/tmp/build/80754af9/attrs_1604765588209/work'
When you're inside the container, run
pip freeze > requirements.txt
Then copy the requirements from container to host machine by
docker cp container_id:/videocap/requirement.txt SwinBERT_directory
replace container_id with the container id and SwinBERT_directory with the dicrectory of the SwinBERT repo on your machine.
Exit the container and run
pip install -r requirements.txt