We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66af85d commit e04ae08Copy full SHA for e04ae08
kauldron/data/tf/random_transforms.py
@@ -36,6 +36,14 @@ class ElementWiseRandomTransform(
36
)
37
38
39
+@dataclasses.dataclass(frozen=True, kw_only=True)
40
+class RandomMapTransform(grain.RandomMapTransform):
41
+ """Wraps RandomMapTransform with an adapter to remove Grain meta features."""
42
+
43
+ # Wrap `random_map` to remove the `grain.META_FEATURES`
44
+ random_map = transform_utils.wrap_map(grain.RandomMapTransform.random_map)
45
46
47
@dataclasses.dataclass(kw_only=True, frozen=True, eq=True)
48
class InceptionCrop(ElementWiseRandomTransform):
49
"""Makes inception-style image crop and optionally resizes afterwards.
0 commit comments