MCPcopy Create free account
hub / github.com/apple/ml-sharp / MobileNetNormalizer

Class MobileNetNormalizer

src/sharp/models/normalizers.py:75–80  ·  view source on GitHub ↗

Image normalization in mobilenet.

Source from the content-addressed store, hash-verified

73
74
75class MobileNetNormalizer(AffineRangeNormalizer):
76 """Image normalization in mobilenet."""
77
78 def __init__(self, input_range: tuple[float, float] = (0, 1)):
79 """Initialize MobileNetNormalizer."""
80 super().__init__(input_range=input_range, output_range=(-1, 1))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected