isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.46k stars 2.31k forks source link

pickling error while doing joblib, or numba #1448

Open rsinghoyla opened 4 years ago

rsinghoyla commented 4 years ago

I get a TypeError: can't pickle open3d.open3d.geometry.PointCloud objects when I try to parallelize a for loop to (multiple) query the KDTree. I have tried joblib and numba and both give me same error.

my code is basically

         [k, idx, _] = pcd_tree.search_knn_vector_3d(pcd.points[i], 1000)
          return idx
results = Parallel(n_jobs=num_cores, verbose=50)(delayed(
    myfunc)(i)for i in my_list)

Is there an alternate fast method for multiple querying the KD Tree?

Thanks!

syncle commented 4 years ago

Yes. pickling is actually a long hanging issue. To querying KDTree using multi-threading, we are preparing better API for that. Please stay tuned.

germanros1987 commented 4 years ago

Hi! In the Open3D team, we take your question very seriously. In order to provide better assistance to our users, we are implementing new policies. Now general questions should be asked in our forum: https://forum.open3d.org

Github issues will remain in use for bug reports and feature requests.

We are looking forward to answering your question in our forum!

Best regards.

sgk-000 commented 1 year ago

Any update?