Your root phenotyping project now has a complete Docker-based automation system!
Dockerfile.train- Training container with GPU supportDockerfile.inference- Inference containerdocker-compose.yml- Orchestration configuration.dockerignore- Optimized build context
Makefile- 20+ automation commandsdownload_dataset.sh- Automatic dataset downloadrun_inference.sh- User-friendly inference wrapperexample_workflow.sh- Complete example workflow
README.md- Updated comprehensive guideQUICK_REFERENCE.md- Quick command referenceDOCKER_GUIDE.md- Detailed Docker usageIMPLEMENTATION_SUMMARY.md- Implementation details
models/ ← Trained models saved here
logs/ ← Training logs and checkpoints
test_images/ ← Place your test images here
inference_results/ ← Results appear here
# 1. Build Docker images
make build-all
# 2. Train the model
make train
# 3. Run inference
make inferenceThat's it! Everything is automated.
Run the interactive example workflow:
./example_workflow.shThis will guide you through:
- Checking prerequisites
- Building images
- Training
- Running inference
make help # See all available commands- README.md - Main documentation
- QUICK_REFERENCE.md - Quick commands
- DOCKER_GUIDE.md - Docker details
make train
# Model saved to: ./models/root_mask_rcnn_trained.h5# Add your images
cp /path/to/images/*.jpg ./test_images/
# Run inference
make inference
# Check results
ls ./inference_results/make inference TEST_DIR=./my_custom_imagesmake shell-train # or shell-inference
# Now you're inside the container
python Training.py✅ One-Command Training: make train
✅ One-Command Inference: make inference
✅ Automatic Dataset Download: No manual steps
✅ GPU Acceleration: Full CUDA support
✅ Any Image Directory: Process any folder structure
✅ Persistent Storage: Models and results saved to host
✅ Production Ready: Error handling and logging
- With GPU: 3-6 hours training time
- Without GPU: 2-3 days training time
- NVIDIA GPU with 8+ GB VRAM (for training)
- 20+ GB disk space
- 16+ GB RAM (32 GB recommended)
- Single directory with images
- Nested subdirectories (use
--recursive) - Any image format (JPG, PNG, etc.)
- Detailed CSV with metrics
- Summary JSON statistics
- Visual overlays with bounding boxes
- Confidence scores and root lengths
- Quick Commands:
make help - Quick Reference: Read
QUICK_REFERENCE.md - Docker Guide: Read
DOCKER_GUIDE.md - Full Manual: Read
README.md - Check Logs:
make logs
Everything is set up and documented. Just run:
make build-all # Build images
make train # Train model
make inference # Run predictionsEnjoy automated root phenotyping! 🌱
- Open an issue on GitHub
- Check documentation in README.md
- Review DOCKER_GUIDE.md for Docker-specific issues
Created with ❤️ for easy automation