Giter Site home page Giter Site logo

[BUG] about pycpd HOT 3 CLOSED

siavashk avatar siavashk commented on May 20, 2024
[BUG]

from pycpd.

Comments (3)

gattia avatar gattia commented on May 20, 2024

Thanks for the feedback! It looks like you might be using an old version (maybe installed via pypi? - sorry, this probably hasn't been updated in a while). I say that because if you look at the code on the lines you are throwing errors the code doesn't match:

np.linalg.solve((self.alpha * self.sigma2 * self.inv_S + np.matmul(self.Q.T, dPQ)),
(np.matmul(self.Q.T, F))))))
QtW = np.matmul(self.Q.T, self.W)
self.E = self.E + self.alpha / 2 * np.trace(np.matmul(QtW.T, np.matmul(self.S, QtW)))
def transform_point_cloud(self, Y=None):
"""
Update a point cloud using the new estimate of the deformable transformation.
Attributes
----------
Y: numpy array, optional
Array of points to transform - use to predict on new set of points.
Best for predicting on new points not used to run initial registration.
If None, self.Y used.
Returns
-------
If Y is None, returns None.
Otherwise, returns the transformed Y.
"""
if Y is not None:
G = gaussian_kernel(X=Y, beta=self.beta, Y=self.Y)
return Y + np.dot(G, self.W)
else:
if self.low_rank is False:
self.TY = self.Y + np.dot(self.G, self.W)
elif self.low_rank is True:
self.TY = self.Y + np.matmul(self.Q, np.matmul(self.S, np.matmul(self.Q.T, self.W)))
return

Can you trying installing from source? Or if you are, can you maybe update?

Thanks.

from pycpd.

a2mattreed avatar a2mattreed commented on May 20, 2024

from pycpd.

gattia avatar gattia commented on May 20, 2024

Glad it worked as expected with the source!

We'll work at updating the pypi version so others dont have this issue. Thanks!

from pycpd.

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.