Code Monkey home page Code Monkey logo

Comments (4)

erikwijmans avatar erikwijmans commented on May 18, 2024

I’m happy to take a look, but I need more information than “it’s wrong”. Do you have an input/output example pair?

from pointnet2_pytorch.

HaiyongJiang avatar HaiyongJiang commented on May 18, 2024

Hi @erikwijmans, thank you for your reply. I tested with the following snippets, and found the grouped points 'xyz1' did not match its corresponding points in 'xyz'. I hope you can reproduce it.

xyz_trans = torch.rand((1, 3, 32)).cuda()
idx = torch.cat([torch.range(0,31).view(1, 32, 1),
                 torch.randint(0, 32, (1, 32, 5))], dim=-1).type(torch.long).cuda()
grouped_xyz_src = grouping_operation( xyz_trans, idx)  # (B, 3, npoint, nsample)
print("xyz1: ", grouped_xyz_src[:, :, :, 0])
print("xyz_tran: ", xyz_trans)
print("idxs: ", idx)

from pointnet2_pytorch.

erikwijmans avatar erikwijmans commented on May 18, 2024

idx should be an int tensor, not a long tensor.

EDIT: Digging into this a little further, I assume you are on the pytorch-1.0.0 branch as the function would have errored out if you had it called it when unexpected types on master. I have added assertions to the pytorch-1.0.0 branch to ensure the tensors are of the expected types.

from pointnet2_pytorch.

HaiyongJiang avatar HaiyongJiang commented on May 18, 2024

Thank you. I got it.

from pointnet2_pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.