π³ Docker Support
Aegear provides a ready-to-use Docker image to simplify deployment and training in cloud environments or on systems without a configured Python environment.
π¦ Public Docker Image
The official Aegear Docker image is hosted on Docker Hub:
ljubobratovicrelja/aegear:latest
Pull the image with:
docker pull ljubobratovicrelja/aegear:latest
π Running the Image
Launch a container with GPU support (if available):
docker run --gpus all -it ljubobratovicrelja/aegear:latest
To mount a local directory for accessing datasets or saving models:
docker run --gpus all -it -v /path/to/data:/workspace/data ljubobratovicrelja/aegear:latest
This will mount /path/to/data
on your host to /workspace/data
inside the container.
π Custom Training with Docker
The public image includes all dependencies for running Aegear and training on the provided dataset. For custom datasets or workflows:
-
Clone and Extend
Clone the Aegear repository and modify the Dockerfile as needed:
git clone https://github.com/ljubobratovicrelja/aegear.git cd aegear docker build -t aegear-custom .
-
Custom Parameters
When launching the container, you can specify: - Which notebook to use (
training_unet.ipynb
ortraining_siamese.ipynb
) - Which branch of the repository (defaults to
main
)
Example:
docker run --gpus all -e NOTEBOOK=training_siamese.ipynb -e BRANCH=dev -it ljubobratovicrelja/aegear:latest
π Currently, this works for the main repository. Support for forks can be added easily by adjusting the Dockerfileβs repository source.
-
Mount Your Data
Mount your dataset and configuration files into the container using-v
. -
Run Training Scripts
Inside the container, launch Jupyter notebooks or Python scripts from thenotebooks/
directory:
jupyter notebook notebooks/training_unet.ipynb jupyter notebook notebooks/training_siamese.ipynb
π Notes
- GPU Support: Requires NVIDIA drivers and Docker with NVIDIA runtime (
nvidia-docker2
). - Cloud Deployment: Compatible with Google Cloud, AWS, and Azure GPU instances.
- Extending: For additional libraries or dependencies, create a new Dockerfile based on
ljubobratovicrelja/aegear:latest
.
π¦ Source Dockerfile
The Dockerfile used to build the public image is included in the repository at:
aegear/Dockerfile
This can serve as a starting point for creating your own custom images.