Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def get_random_transformation(self, data, training=True, seed=None):

def transform_images(self, images, transformation, training=True):
if training:
constrast_factor = transformation["contrast_factor"]
outputs = self._adjust_constrast(images, constrast_factor)
contrast_factor = transformation["contrast_factor"]
outputs = self._adjust_contrast(images, contrast_factor)
outputs = self.backend.numpy.clip(
outputs, self.value_range[0], self.value_range[1]
)
Expand All @@ -117,7 +117,7 @@ def transform_segmentation_masks(
):
return segmentation_masks

def _adjust_constrast(self, inputs, contrast_factor):
def _adjust_contrast(self, inputs, contrast_factor):
if self.data_format == "channels_first":
height_axis = -2
width_axis = -1
Expand Down