5ea5760e41a3faa385027f9229db49dfcd62481e,kornia/enhance/normalize.py,,denormalize,#,175

Before Change



    out: torch.Tensor = (data * std) + mean

    return out


def normalize_min_max(x: torch.Tensor, min_val: float = 0., max_val: float = 1., eps: float = 1e-6) -> torch.Tensor:
    rNormalise an image tensor by MinMax and re-scales the value between a range.

After Change



    out: torch.Tensor = (data.view(shape[0], shape[1], -1) * std) + mean

    return out.view(shape)


def normalize_min_max(x: torch.Tensor, min_val: float = 0., max_val: float = 1., eps: float = 1e-6) -> torch.Tensor:
    rNormalise an image tensor by MinMax and re-scales the value between a range.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: arraiy/torchgeometry
Commit Name: 5ea5760e41a3faa385027f9229db49dfcd62481e
Time: 2021-01-16
Author: sj8716643@126.com
File Name: kornia/enhance/normalize.py
Class Name:
Method Name: denormalize


Project Name: mariogeiger/se3cnn
Commit Name: 4699c81c3b592fed845ccc3b99637cdd7fc1471f
Time: 2019-07-25
Author: geiger.mario@gmail.com
File Name: se3cnn/point/kernel.py
Class Name: Kernel
Method Name: forward


Project Name: leftthomas/SRGAN
Commit Name: 3b13f1e6b5f5ac19511cb80f8107d4a1e077beca
Time: 2017-12-03
Author: leftthomas@qq.com
File Name: model.py
Class Name: Discriminator
Method Name: forward


Project Name: tristandeleu/pytorch-maml-rl
Commit Name: f0a691823edd2ee74f7f8de586ef9d44d665db0c
Time: 2020-01-09
Author: tristan.deleu@gmail.com
File Name: maml_rl/baseline.py
Class Name: LinearFeatureBaseline
Method Name: forward


Project Name: arraiy/torchgeometry
Commit Name: 5ea5760e41a3faa385027f9229db49dfcd62481e
Time: 2021-01-16
Author: sj8716643@126.com
File Name: kornia/enhance/normalize.py
Class Name:
Method Name: normalize