https://github.com/carpenterlab/unet4nuclei/blob/930e47e8417ab07994180bb3db5ae93d7d61cf4b/unet4nuclei/utils/experiment.py#L171