MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / NormalizeImage

Class NormalizeImage

datasets/transform_utils.py:125–136  ·  view source on GitHub ↗

Normlize image by given mean and std.

Source from the content-addressed store, hash-verified

123
124
125class NormalizeImage(object):
126 """Normlize image by given mean and std.
127 """
128
129 def __init__(self, mean, std):
130 self.__mean = mean
131 self.__std = std
132
133 def __call__(self, sample):
134 sample["image"] = (sample["image"] - self.__mean) / self.__std
135
136 return sample
137
138
139class PrepareForNet(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected