kaolin icon indicating copy to clipboard operation
kaolin copied to clipboard

ImportError: cannot import name 'TriangleMesh' from 'kaolin.rep'

Open ERICXUCHI opened this issue 2 years ago • 1 comments

Hi guys, does anyone encounter this error:

ImportError: cannot import name 'TriangleMesh' from 'kaolin.rep' (/home/testuser/miniconda3/envs/3dmesh/lib/python3.8/site-packages/kaolin/rep/__init__.py)

I just followed strictly with the instructions and my environments are as below: linux python 3.8 torch 1.13.0 cuda 11.7 kaolin 0.13

Moreover, I could not find 'TriangleMesh' in 'kaolin/rep'.

ERICXUCHI avatar Aug 23 '23 13:08 ERICXUCHI

Hi @ERICXUCHI , there is no TriangleMesh in Kaolin 0.13, I assume you want to use 0.1 which is a very old version of Kaolin?

Caenorst avatar Nov 27 '23 15:11 Caenorst

Hi guys, does anyone encounter this error:

ImportError: cannot import name 'TriangleMesh' from 'kaolin.rep' (/home/testuser/miniconda3/envs/3dmesh/lib/python3.8/site-packages/kaolin/rep/__init__.py)

I just followed strictly with the instructions and my environments are as below: linux python 3.8 torch 1.13.0 cuda 11.7 kaolin 0.13

Moreover, I could not find 'TriangleMesh' in 'kaolin/rep'.

Hey , I wonder how you solved the problem. I tried to use the Kaolin 0.1 but it remind me that: ImportError: This is the kaolin placeholder wheel from https://pypi.org/project/kaolin/. Please follow https://kaolin.readthedocs.io/en/latest/notes/installation.html for installation.

yangqinhui0423 avatar Jul 17 '24 05:07 yangqinhui0423

Hi @yangqinhui0423 Unfortunately we only made wheels for v0.11.0 and above, for what usage are you trying to use v0.1?

Caenorst avatar Jul 17 '24 05:07 Caenorst

Hi @yangqinhui0423 Unfortunately we only made wheels for v0.11.0 and above, for what usage are you trying to use v0.1?

In the code as follows(from the work IPNet——https://github.com/bharat-b7/IPNet): image kaolin.rep.Trianglemesh

yangqinhui0423 avatar Jul 17 '24 12:07 yangqinhui0423

This is the old version of the library no longer supported. Closing bug.

Note that for new code, we now support a SurfaceMesh class. Here's a video tutorial on how to use it, and visualization tutorial.

shumash avatar Jul 19 '24 19:07 shumash