FruitNeRF icon indicating copy to clipboard operation
FruitNeRF copied to clipboard

Looking in the clustering section but confused

Open ML-learner79 opened this issue 1 year ago • 11 comments

Try to run clustering and getting error not sure why self.fruit_alpha_shape = self.fruit_alpha_shape_.as_open3d.sample_points_uniformly(1000) AttributeError: 'GeometryCollection' object has no attribute 'as_open3d'

ML-learner79 avatar Sep 27 '24 15:09 ML-learner79

Furthermore in run_clustering.py self.fruit_template = o3d.io.read_point_cloud(self.template_path) print(self.fruit_template.points) the template is empty. Not sure that lead to error above

ML-learner79 avatar Sep 27 '24 16:09 ML-learner79

Is it figure out now?

Cola-1 avatar Oct 20 '24 00:10 Cola-1

Same issue

Matt-V50 avatar Oct 23 '24 22:10 Matt-V50

.ply files are stored using Git-LFS. Make sure to install it and run git lfs pull in the FruitNeRF folder. This will pull the actual contents of the .ply files.

Having said this, I am still running into the error:

AttributeError: 'Trimesh' object has no attribute 'as_open3d'

Reading a bit about Trimesh library, seems like they removed the as_open3d method in some of their recent release. Running pip install trimesh==4.4.0 solves the issue for me.

sebdeveloper6952 avatar Nov 02 '24 19:11 sebdeveloper6952

@sebdeveloper6952 Could you please release the newly modified run clustering.py

Cola-1 avatar Nov 13 '24 00:11 Cola-1

I believe you need to downgrade trimesh version cause this commit

Try pip install trimesh==4.4.7

Matt-V50 avatar Nov 13 '24 15:11 Matt-V50

The final clustering result after modification is still 0.

Cola-1 avatar Nov 16 '24 02:11 Cola-1

The final clustering result after modification is still 0.

Try adjusting the params for downsampling/cleaning remove_outliers_nb_points and remove_outliers_radius are based on https://www.open3d.org/docs/latest/tutorial/Advanced/pointcloud_outlier_removal.html#Radius-outlier-removal and depending on the scale of your point cloud the default values can lead to removing all of your points. Try adjusting/decreasing the values. Is your result still 0?

EyGy avatar Jan 07 '25 13:01 EyGy

The final clustering result after modification is still 0.

Hello, have you solved this problem?

pandachenf avatar Feb 24 '25 13:02 pandachenf

The same issue. Have you solved this problem?

00mmw avatar Mar 04 '25 01:03 00mmw

+1

IceIce1ce avatar Sep 18 '25 11:09 IceIce1ce