Skip to content
Open
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
4 changes: 2 additions & 2 deletions datasets/augmentation/ms_augmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def AutoContrast(img, v):
return iaaa.pillike.Autocontrast(cutoff=0)(image=img)["image"]
return iaaa.pillike.Autocontrast(cutoff=v)(image=img)


def Brightness(img, v):
Expand Down Expand Up @@ -65,7 +65,7 @@ def TranslateY(img, v):
def ms_augmentation_list():
l = [
# The below four don't work with multispectral images
# (AutoContrast, 0, 1),
(AutoContrast, 0, 20),
# (Brightness, 0.05, 0.95),
# (Color, 0.05, 0.95),
# (Contrast, 0.05, 0.95),
Expand Down