I like to use the object detection api from tensorflow with dicom images instead of jpg.
In the documentation: https://tensorflow-object-detection-api-tutorial.readthedoc