c1d2e0e7dc79e4f1a91ef007771347e475f301e5,pytorch/metrics/ret_metrics.py,PointDetectionMeanResidual,transform_points,#Any#Any#,124

Before Change


    @staticmethod
    def transform_points(src_hmg_pts,
                         homography):
        dst_hmg_pts = torch.matmul(src_hmg_pts, homography).squeeze(dim=0)
        dst_hmg_pts /= dst_hmg_pts[:, 2:]
        return dst_hmg_pts

After Change


        // print("transform_points -> homography.shape={}".format(homography.shape))

        print("homography={}".format(homography))
        print("transform_points -> src_hmg_pts={}".format(src_hmg_pts[:10, :].int()))

        dst_hmg_pts = torch.matmul(src_hmg_pts, homography.t())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: osmr/imgclsmob
Commit Name: c1d2e0e7dc79e4f1a91ef007771347e475f301e5
Time: 2019-08-20
Author: osemery@gmail.com
File Name: pytorch/metrics/ret_metrics.py
Class Name: PointDetectionMeanResidual
Method Name: transform_points


Project Name: pytorch/pytorch
Commit Name: c348faedc4c3e48182a9b2d74f1da861624d0f87
Time: 2020-12-22
Author: wayi@fb.com
File Name: torch/distributed/algorithms/ddp_comm_hooks/powerSGD_hook.py
Class Name:
Method Name: batched_powerSGD_hook


Project Name: arraiy/torchgeometry
Commit Name: a606a68ff74ed2b2e35f7079a1570310655e4e6d
Time: 2019-03-04
Author: edgar.riba@gmail.com
File Name: torchgeometry/core/depth_warper.py
Class Name: DepthWarper
Method Name: compute_projection_matrix