5510a7709e957615fb55397698f8e1c79cd5481b,torch_geometric/io/ply.py,,read_ply,#Any#,6

Before Change


    with open(path, "rb") as f:
        data = PlyData.read(f)

    pos = ([torch.tensor(data["vertex"][axis]) for axis in ["x", "y", "z"]])
    pos = torch.stack(pos, dim=-1)

    face = None

After Change



def read_ply(path):
    mesh = openmesh.read_trimesh(path)
    pos = torch.from_numpy(mesh.points()).to(torch.float)
    face = torch.from_numpy(mesh.face_vertex_indices())
    face = face.t().to(torch.long).contiguous()

    data = Data(pos=pos, face=face)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 5510a7709e957615fb55397698f8e1c79cd5481b
Time: 2020-07-01
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/io/ply.py
Class Name:
Method Name: read_ply


Project Name: rusty1s/pytorch_geometric
Commit Name: 14b628e18fdefc250915ddc7b7b39f7880dad6cf
Time: 2019-07-04
Author: matthias.fey@tu-dortmund.de
File Name: test/nn/glob/test_glob.py
Class Name:
Method Name: test_permuted_global_pool


Project Name: arraiy/torchgeometry
Commit Name: 7b8cad3ad8449f260e3b282bf0f9b824cc94b58d
Time: 2020-03-16
Author: jianshi@cuhk.edu.hk
File Name: kornia/geometry/transform/imgwarp.py
Class Name:
Method Name: get_rotation_matrix2d


Project Name: ClementPinard/FlowNetPytorch
Commit Name: 678ac413ce55cb3db09d1f24532920582af54f43
Time: 2018-11-12
Author: clement.pinard@parrot.com
File Name: run_inference.py
Class Name:
Method Name: main