Step-by-Step Tutorial: Liver Segmentation on CT Scans using TensorFlow
We create a custom data generator class, called NiiDataGenerator, that inherits from the built-in tf.keras.utils.Sequence class. This allows for easy loading of data for training and testing of a deep learning model in batches. The class takes four arguments in the constructor: image_filenames, mask_filenames, batch_size, and image_size. These are the paths to the image files, corresponding mask files, the batch size, and the desired image size, respectively. The class then implements the two required methods of the Sequence class: __len__() and __getitem__().
Jan-11-2023, 13:35:08 GMT
- Genre:
- Instructional Material (0.40)
- Industry:
- Health & Medicine > Diagnostic Medicine > Imaging (0.40)
- Technology: