DeepMed: A unified, modular pipeline for end-to-end deep learning in computational pathology