a606a68ff74ed2b2e35f7079a1570310655e4e6d,torchgeometry/core/depth_warper.py,DepthWarper,compute_projection_matrix,#DepthWarper#Any#,66

Before Change



        extrinsics_src: torch.Tensor = pinhole_src.extrinsics[:, None].expand(
            -1, num_cameras, -1, -1)  // BxNx4x4
        extrinsics_src = extrinsics_src.contiguous().view(-1, 4, 4)  // (B*N)x4x4
        extrinsics_dst: torch.Tensor = self._pinhole_dst.extrinsics.view(
            -1, 4, 4)  // (B*N)x4x4
        dst_trans_src: torch.Tensor = relative_transformation(

After Change


        if not isinstance(self._pinhole_dst, PinholeCamera):
            raise TypeError("Member self._pinhole_dst expected to be of class "
                            "PinholeCamera. Got {}"
                            .format(type(self._pinhole_dst)))
        if not isinstance(pinhole_src, PinholeCamera):
            raise TypeError("Argument pinhole_src expected to be of class "
                            "PinholeCamera. Got {}".format(type(pinhole_src)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


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


Project Name: zhanghang1989/PyTorch-Encoding
Commit Name: 308447157af829f9d842bd0a2a5c035e0b0ecd29
Time: 2018-05-15
Author: zhang.hang@rutgers.edu
File Name: encoding/functions/syncbn.py
Class Name: _sum_square
Method Name: forward


Project Name: nerox8664/pytorch2keras
Commit Name: ad2100bf40e81c9964b9f4c8a3e5a9dbf5f4efd9
Time: 2018-11-24
Author: nerox8664@gmail.com
File Name: tests/layers/view.py
Class Name: TestView
Method Name: forward


Project Name: zhanghang1989/PyTorch-Encoding
Commit Name: 67e153dd09917defcadc048618b5aac2f17b9e6c
Time: 2018-05-15
Author: 8041160+zhanghang1989@users.noreply.github.com
File Name: encoding/functions/syncbn.py
Class Name: _sum_square
Method Name: forward