Skip to content

Commit

Permalink
Common transformations
Browse files Browse the repository at this point in the history
  • Loading branch information
ander-db committed Oct 8, 2024
1 parent 7232245 commit ce67881
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/utils/common_transformations.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from src.utils.normalizations import NormalizeTransform
from src.utils.scales import LogScaleTransform
from src.utils.normalizations import NormalizeTransform
from src.utils.transformations import RandomFlipRotateTransform


Expand All @@ -20,6 +20,12 @@ def __call__(self, input_tensor, target_tensor):
return input_tensor, target_tensor


TRANSFORM_LOG_NORM_FLIP = Compose(
###################
# TRANSFORMATIONS #
###################

TRANSFORM_LOG_NORM_DA = Compose(
[LogScaleTransform(), NormalizeTransform(), RandomFlipRotateTransform()]
)

TRANSFORM_LOG_NORM = Compose([LogScaleTransform(), NormalizeTransform()])

0 comments on commit ce67881

Please sign in to comment.