Searched refs:mean_vector (Results 1 – 4 of 4) sorted by relevance
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_linear_transformation.py | 42 mean_vector = np.zeros(dim) 57 data1 = data1.map(operations=py_vision.LinearTransformation(transformation_matrix, mean_vector), 91 mean_vector = np.zeros(dim) 99 py_vision.LinearTransformation(transformation_matrix, mean_vector) 120 mean_vector = np.zeros(dim) 129 py_vision.LinearTransformation(None, mean_vector) 179 mean_vector = np.zeros(dim) 188 py_vision.LinearTransformation(transformation_matrix, mean_vector) 209 mean_vector = np.zeros(dim - 1) 218 py_vision.LinearTransformation(transformation_matrix, mean_vector)
|
/third_party/mindspore/mindspore/dataset/vision/ |
D | py_transforms.py | 1172 def __init__(self, transformation_matrix, mean_vector): argument 1174 self.mean_vector = mean_vector 1187 return util.linear_transform(np_img, self.transformation_matrix, self.mean_vector)
|
D | validators.py | 665 [transformation_matrix, mean_vector], _ = parse_user_args(method, *args, **kwargs) 667 type_check(mean_vector, (np.ndarray,), "mean_vector") 672 if mean_vector.shape[0] != transformation_matrix.shape[0]: 674 … "transformation_matrix {1}.".format(mean_vector.shape[0], transformation_matrix.shape))
|
D | py_transforms_util.py | 1043 def linear_transform(np_img, transformation_matrix, mean_vector): argument 1066 if mean_vector.shape[0] != transformation_matrix.shape[0]: 1068 … "transformation_matrix {1}.".format(mean_vector.shape[0], transformation_matrix.shape)) 1069 zero_centered_img = np_img.reshape(1, -1) - mean_vector
|