meyerls / pc-skeletor

Skeletonization of 3D Point Clouds
MIT License
135 stars 16 forks source link

AttributeError: module 'mistree' has no attribute 'GetMST' #12

Open Ameliecc opened 1 year ago

Ameliecc commented 1 year ago

Current volume ratio 0.0045762590683944325. Contraction weights 2048.0. Attraction weights 1012.7767136646321. Progress LBC: 45%|████▌ | 9/20 [00:10<00:12, 1.11s/it] Traceback (most recent call last): File "D:\pc-skeletor-main\example_tree.py", line 21, in lbc.extract_topology() File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 288, in extract_topology self.skeleton_graph = self.__extract_skeletal_graph(skeletal_points=skeleton_points) File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 242, in __extract_skeletalgraph , , , _, edgeindex, = extract_mst(points=skeletal_points) File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 236, in extract_mst mst = mist.GetMST(x=points[:, 0], y=points[:, 1], z=points[:, 2]) AttributeError: module 'mistree' has no attribute 'GetMST'

meyerls commented 1 year ago

Hi @Ameliecc,

what python version are you using? What version of mistree is installed on your device?

albertpaolobugayong commented 4 months ago

I was able to get it to install by installing from source, thank you for the recent update :)

yangfeng-Lyu commented 3 months ago

Current volume ratio 0.0045762590683944325. Contraction weights 2048.0. Attraction weights 1012.7767136646321. Progress LBC: 45%|████▌ | 9/20 [00:10<00:12, 1.11s/it] Traceback (most recent call last): File "D:\pc-skeletor-main\example_tree.py", line 21, in lbc.extract_topology() File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 288, in extract_topology self.skeleton_graph = self.__extract_skeletal_graph(skeletal_points=skeleton_points) File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 242, in __extract_skeletalgraph , , , _, edgeindex, = extract_mst(points=skeletal_points) File "D:\pc-skeletor-main\pc_skeletor\laplacian.py", line 236, in extract_mst mst = mist.GetMST(x=points[:, 0], y=points[:, 1], z=points[:, 2]) AttributeError: module 'mistree' has no attribute 'GetMST' I also have this problem when i run example_tree.py.so how can i fix it?

yashreadytobox commented 1 hour ago

I am getting a similar issue with python 3.9 numpy version 1.26.0, on windows 11 and version of mistree===1.2.1 (The reason i am specifying numpy version is because open3d crashes for numpy version 2.x)