Giter Site home page Giter Site logo

Comments (7)

nicolas-chaulet avatar nicolas-chaulet commented on August 18, 2024

Hi, could you please be a bit more specific? Which version of torch_points_kernels are you using?
In principle you should not have to import points_cpu and you should only use the high level methods available in torch_points_kernels directly.

from torch-points-kernels.

rocky-DJY avatar rocky-DJY commented on August 18, 2024

from torch-points-kernels.

nicolas-chaulet avatar nicolas-chaulet commented on August 18, 2024

Hi,
You can take a look at the tests for examples but in general, simply do:

from torch_points_kernels import knn
import torch

support = torch.tensor([[[0, 0, 0], [1, 0, 0], [2, 0, 0]]]).float()
query = torch.tensor([[[0, 0, 0]]]).float()
idx, dist = knn(support, query, 3)

from torch-points-kernels.

rocky-DJY avatar rocky-DJY commented on August 18, 2024

from torch-points-kernels.

nicolas-chaulet avatar nicolas-chaulet commented on August 18, 2024

Alright, looks like you're running on windows correct? If that's the case it might very well be that the libraries never compiled, we have never tried compiling those on windows. Otherwise it is certainly a problem with the installation, it seems that it does not compile the c++ code. Are you sure it installs properly? I.e no error? Last thing, did you install pytorch before installing it? You must have pytorch installed before running the pip install.

from torch-points-kernels.

rocky-DJY avatar rocky-DJY commented on August 18, 2024

from torch-points-kernels.

nicolas-chaulet avatar nicolas-chaulet commented on August 18, 2024

So that's the thing. Just install pytorch first and it should work! I have added a word about that on the README. We can't really fix the issue as far as I can tell, it's python dependency management problem... Let us know if you still have this issue.

from torch-points-kernels.

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.