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)
| 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 |
no test coverage detected