ranahanocka / MeshCNN

Convolutional Neural Network for 3D meshes in PyTorch
MIT License
1.58k stars 316 forks source link

TypeError: can't convert np.ndarray of type numpy.bool_ #56

Closed tt-study closed 4 years ago

tt-study commented 4 years ago

I have the problem when running the code in the environment meshcnn : TypeError: can't convert np.ndarray of type numpy.bool_. The only supported types are: double, float, float16, int64, int32, and uint8.

"mask = np.ones(mesh.edges_count, dtype=np.bool)'' How could I solve this problem? Thank you very much~~

ranahanocka commented 4 years ago

Hi @tt-study ,

You are running pytorch which is less than version 1.2. The newest version of the MeshCNN code uses pytorch 1.2, you can install the environment as in the readme.

Alternatively, you can check out an older version of the code which used Pytorch 1.0 (i.e., run git checkout cf93099)