Skip to content

Commit

Permalink
typo stopped training
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanklut committed Apr 29, 2024
1 parent a24d178 commit da2aba0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions configs/extra_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,17 @@
_C.INPUT.GRAYSCALE = CN()
_C.INPUT.GRAYSCALE.PROBABILITY = 0.5

_C.INPUT.ADAPTIVE_THESHOLDING = CN()
_C.INPUT.ADAPTIVE_THESHOLDING.PROBABILITY = 0.5
_C.INPUT.ADAPTIVE_THRESHOLDING = CN()
_C.INPUT.ADAPTIVE_THRESHOLDING.PROBABILITY = 0.5

_C.INPUT.INVERT = CN()
_C.INPUT.INVERT.PROBABILITY = 0.5
_C.INPUT.INVERT.MAX_VALUE = 255

_C.JPEG_COMPRESSION = CN()
_C.JPEG_COMPRESSION.PROBABILITY = 0.5
_C.JPEG_COMPRESSION.MIN_QUALITY = 0
_C.JPEG_COMPRESSION.MAX_QUALITY = 100
_C.INPUT.JPEG_COMPRESSION = CN()
_C.INPUT.JPEG_COMPRESSION.PROBABILITY = 0.5
_C.INPUT.JPEG_COMPRESSION.MIN_QUALITY = 0
_C.INPUT.JPEG_COMPRESSION.MAX_QUALITY = 100

_C.INPUT.NOISE = CN()
_C.INPUT.NOISE.PROBABILITY = 0.5
Expand Down
4 changes: 2 additions & 2 deletions datasets/augmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,8 +1168,8 @@ def build_augmentation(cfg: CfgNode, mode: str = "train") -> list[T.Augmentation
max_size = cfg.INPUT.MAX_SIZE_TRAIN
sample_style = cfg.INPUT.MIN_SIZE_TRAIN_SAMPLING
elif mode == "val":
min_size = cfg.INPUT.MIN_SIZE_TRAIN
max_size = cfg.INPUT.MAX_SIZE_TRAIN
min_size = cfg.INPUT.MIN_SIZE_TEST
max_size = cfg.INPUT.MAX_SIZE_TEST
sample_style = "choice"
elif mode == "test":
min_size = cfg.INPUT.MIN_SIZE_TEST
Expand Down

0 comments on commit da2aba0

Please sign in to comment.