FruitNeRF icon indicating copy to clipboard operation
FruitNeRF copied to clipboard

Run clustering error

Open IceIce1ce opened this issue 3 months ago • 2 comments

Hi author, when I run your clustering code after finishing training FruitNeRF model, an error happened:

Traceback (most recent call last): File "clustering/run_clustering.py", line 97, in clustering = Clustering(remove_outliers_nb_points=Baum['remove_outliers_nb_points'], File "clustering/run_clustering.py", line 44, in init self.fruit_alpha_shape = self.fruit_alpha_shape_.as_open3d.sample_points_uniformly(1000) AttributeError: 'Trimesh' object has no attribute 'as_open3d'

Can you check your code again?

IceIce1ce avatar Sep 18 '25 06:09 IceIce1ce

Hi @IceIce1ce ,

have a look at https://github.com/meyerls/FruitNeRF/issues/21#issuecomment-2453100803 this is likely caused by your trimesh version.

downgrading with pip install trimesh==4.4.7 should solve this issue!

EyGy avatar Sep 18 '25 12:09 EyGy

Hi author, I change the version of trimesh and the code can run well. However, the counting results is always 0. I tried to lower the values for remove_outliers_nb_points and remove_outliers_radius, but it does not work. I found that the link in: "For reproducibility, we provide the extracted point clouds for our synthetic and real-world data. From Table I and Fig.8. Data can be downloaded from here" is not valid. Can you update the link?

IceIce1ce avatar Sep 18 '25 16:09 IceIce1ce