You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to run the create_data.py file in examples/00_create_data and I got the following error :
[OctreeCreateCpu] create octree structure
[OctreeCreateCpu] update octree data structure
[OctreeCreateCpu] fill data
[OctreeCreateCpu] done
Traceback (most recent call last):
File "./create_data.py", line 32, in <module>
oc_from_dense2 = pyoctnet.Octree.create_from_dense2(dense, dense[np.newaxis,...], n_threads=n_threads)
File "pyoctnet.pyx", line 644, in pyoctnet.Octree.create_from_dense2 (pyoctnet.cpp:8776)
def create_from_dense2(cls, float[:,:,::1] occupancy, float[:,:,:,::1] features, bool fit=False, int fit_multiply=1, bool pack=False, int n_threads=1):
File "stringsource", line 644, in View.MemoryView.memoryview_cwrapper (pyoctnet.cpp:23565)
File "stringsource", line 345, in View.MemoryView.memoryview.__cinit__ (pyoctnet.cpp:19800)
ValueError: ndarray is not C-contiguous
Thanks for the help !
The text was updated successfully, but these errors were encountered:
There seems to be a problem with some versions of Python/Cython. On my machine dense[np.newaxis,...] produces a contiguous array. However, using Anaconda it gives the error described above. I added a copy to the example to ensure a contiguous array.
Hi, I tried to run the create_data.py file in examples/00_create_data and I got the following error :
Thanks for the help !
The text was updated successfully, but these errors were encountered: