Conditional Transformation: The get_transforms() function is called twice, once in get_data_loaders() for training and again (potentially) for validation. You can potentially define the transformation logic within get_data_loaders() and conditionally apply normalization based on whether it's training or validation data. This could reduce code duplication.
Conditional Transformation: The get_transforms() function is called twice, once in get_data_loaders() for training and again (potentially) for validation. You can potentially define the transformation logic within get_data_loaders() and conditionally apply normalization based on whether it's training or validation data. This could reduce code duplication.