We highly recommend the use of GPU to processing video. We recommend install the NVIDIA tool:
sudo apt install -y docker.io nvidia-container-toolkit
Restart docker service
sudo systemctl daemon-reload
sudo systemctl restart docker
docker build --pulll --rm -f "Dockerfile" -t protectorvideo:latest "."
docker run --gpus all -it --rm -v `pwd`/data/:/data/ protectorvideo:latest
python main.py -I <video> -N <video_place> -AM <anomaly-model>