DeepEthogram's Docker images are built with uv, so you do not need conda inside the container.
Install Docker: https://docs.docker.com/get-docker/
Install the NVIDIA Container Toolkit if you want GPU access: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker
In a terminal, run xhost +local:docker. You'll need to do this each time you restart.
docker run --gpus all -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw --shm-size 16G -v /media:/media -it jbohnslav/deepethogram:fullExplanation:
--gpus all: required to expose NVIDIA GPUs inside the container-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw: forwards your X11 display--shm-size 16G: helps PyTorch multiprocessing workloads-v /media:/media: mounts your data drive; replace/mediawith the path that makes sense on your machine
The full image launches deepethogram by default.
Again, replace /media with the path to your data.
docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /media:/media -it jbohnslav/deepethogram:guidocker run --gpus all -v /media:/media -it jbohnslav/deepethogram:headless pytest -vUse the repo-local images if you built them yourself:
docker run --gpus all -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /media:/media -it deepethogram:full
docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /media:/media -it deepethogram:gui
docker run --gpus all -it deepethogram:headless pytest -vTo build the full image from this repository:
docker buildx build --load --target full -t deepethogram:full -f docker/Dockerfile .