- Docker and Docker Compose installed
- NVIDIA Docker runtime (for GPU support)
- X11 forwarding enabled (for GUI display)
- Build and run the container:
docker-compose up -d
docker-compose exec football-ai bash- Once inside the container, run the Football AI:
python main.py --config config.yamlIf you have NVIDIA GPU:
docker-compose -f docker-compose.gpu.yaml up -d
docker-compose -f docker-compose.gpu.yaml exec football-ai bashMake the script executable:
chmod +x run_docker.shRun:
./run_docker.sh/app- Your code (mounted from current directory)/app/videos- Input videos (includes downloaded samples)/app/output- Output videos/app/.cache- Model cache
The following sample videos are automatically downloaded:
- 0bfacc_0.mp4
- 2e57b9_0.mp4
- 08fd33_0.mp4
- 573e61_0.mp4
- 121364_0.mp4
To use a sample video, update your config.yaml:
video:
input_path: "/app/videos/08fd33_0.mp4"
output_path: "/app/output/output_video.mp4"If you get display errors:
# On host machine
xhost +local:dockerIf you encounter permission issues with output files:
# Inside container
chmod -R 777 /app/outputMake sure you have:
- NVIDIA drivers installed
- NVIDIA Docker runtime installed
- Using the GPU compose file
- The container runs interactively, allowing you to modify code and rerun
- All changes to code are reflected immediately (volume mounted)
- Output videos are saved to the
outputfolder - Model caches are preserved between runs