qbcompiler.calibration.preprocess.NpyNormalize Class Reference#
|
Mobilint SDK qb Compiler v1.2
MCS002-EN
|
qbcompiler.calibration.preprocess.NpyNormalize Class Reference
Public Member Functions | |
| __init__ (self, Union[List[float], np.ndarray] mean, Union[List[float], np.ndarray] std, bool to_float_div255=False) | |
| __call__ (self, np.ndarray img) | |
Public Attributes | |
| mean = np.array(mean) if isinstance(mean, (list, tuple)) else mean | |
| std = np.array(std) if isinstance(std, (list, tuple)) else std | |
| to_float_div255 = to_float_div255 | |
Detailed Description
Definition at line 62 of file preprocess.py.
Constructor & Destructor Documentation
◆ __init__()
| qbcompiler.calibration.preprocess.NpyNormalize.__init__ | ( | self, | |
| Union[List[float], np.ndarray] | mean, | ||
| Union[List[float], np.ndarray] | std, | ||
| bool | to_float_div255 = False ) |
Definition at line 63 of file preprocess.py.
Member Function Documentation
◆ __call__()
| qbcompiler.calibration.preprocess.NpyNormalize.__call__ | ( | self, | |
| np.ndarray | img ) |
Definition at line 77 of file preprocess.py.
Member Data Documentation
◆ mean
| qbcompiler.calibration.preprocess.NpyNormalize.mean = np.array(mean) if isinstance(mean, (list, tuple)) else mean |
Definition at line 73 of file preprocess.py.
◆ std
| qbcompiler.calibration.preprocess.NpyNormalize.std = np.array(std) if isinstance(std, (list, tuple)) else std |
Definition at line 74 of file preprocess.py.
◆ to_float_div255
| qbcompiler.calibration.preprocess.NpyNormalize.to_float_div255 = to_float_div255 |
Definition at line 75 of file preprocess.py.
The documentation for this class was generated from the following file:
Generated by