提交 f6e66ec6 编写于 作者: M Megvii Engine Team

fix(data): fix the sampling scale in Lighting

GitOrigin-RevId: d0a1ca50e2dafcc9923ff845815e882c3a08f2e6
上级 00b48dfe
......@@ -1043,7 +1043,7 @@ class Lighting(VisionTransform):
dtype = image.dtype
image = image.astype(np.float32)
alpha = np.random.normal(scale=self.scale, size=3)
alpha = np.random.normal(scale=self.scale * 255, size=3)
image = image + self.eigvec.dot(alpha * self.eigval)
return image.clip(0, 255).astype(dtype)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册