Preparing data for training segmentation models
This section introduces several scenarios about data preparation steps that may be necessary for your cases. Specifically, this section first introduces the common tasks to prepare a dataset, including getting images, labeling images, and converting annotations. Additionally, in practice, data may come in various formats that might not be standard, and in this case, we may need to perform the data preparation steps from scratch. Therefore, this section also introduces the steps to prepare the brain tumor dataset for training custom segmentation models using Detectron2.
Getting images, labeling images, and converting annotations
If you do not have a dataset, Chapter 3 introduces common places to obtain data for computer vision applications in general. It would help if you also went to these sources for object instance segmentation data. Also, you can use the same Python script (Detectron2_Chapter03_Download_Images.ipynb
) introduced...