MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / set_input_scale

Method set_input_scale

rtpose_wrapper/python/caffe/io.py:262–274  ·  view source on GitHub ↗

Set the scale of preprocessed inputs s.t. the blob = blob * scale. N.B. input_scale is done AFTER mean subtraction and other preprocessing while raw_scale is done BEFORE. Parameters ---------- in_ : which input to assign this scale factor sca

(self, in_, scale)

Source from the content-addressed store, hash-verified

260 self.mean[in_] = mean
261
262 def set_input_scale(self, in_, scale):
263 """
264 Set the scale of preprocessed inputs s.t. the blob = blob * scale.
265 N.B. input_scale is done AFTER mean subtraction and other preprocessing
266 while raw_scale is done BEFORE.
267
268 Parameters
269 ----------
270 in_ : which input to assign this scale factor
271 scale : scale coefficient
272 """
273 self.__check_input(in_)
274 self.input_scale[in_] = scale
275
276
277## Image IO

Callers 2

__init__Method · 0.80
__init__Method · 0.80

Calls 1

__check_inputMethod · 0.95

Tested by

no test coverage detected