Rubikplayer / flame-fitting

Example code for the FLAME 3D head model. The code demonstrates how to sample 3D heads from the model, fit the model to 3D keypoints and 3D scans.
http://flame.is.tue.mpg.de/
732 stars 111 forks source link

ImportError: cannot import name 'sample2meshdist' #34

Closed hjo111 closed 1 year ago

hjo111 commented 1 year ago

thank you for your great work. I got a problem when I run your code. Could you help me with it? Thank you very much.

File "e:\flame-fitting\sbody\alignment\mesh_distance\mesh_distance.py", line 4, in from sbody.alignment.mesh_distance import sample2meshdist ImportError: cannot import name 'sample2meshdist'

ryanhg commented 1 year ago

Hey @OKJINHAE what did you do to solve this error? Thanks!

2517722580 commented 1 year ago

@hjo111 Edit the file setup.py to set the correct EIGEN_DIR to Eigen's location. Then enter:make,my EIGEN_DIR is /usr/include/eigen3

Zvyozdo4ka commented 7 months ago

@hjo111 Edit the file setup.py to set the correct EIGEN_DIR to Eigen's location. Then enter:make,my EIGEN_DIR is /usr/include/eigen3

I did so, but it just appeared a zillion errors

lvZic commented 5 months ago

@hjo111 Edit the file setup.py to set the correct EIGEN_DIR to Eigen's location. Then enter:make,my EIGEN_DIR is /usr/include/eigen3

I did so, but it just appeared a zillion errors

how did u solved it?

Zvyozdo4ka commented 5 months ago

@hjo111 Edit the file setup.py to set the correct EIGEN_DIR to Eigen's location. Then enter:make,my EIGEN_DIR is /usr/include/eigen3

I did so, but it just appeared a zillion errors

how did u solved it?

i did not solve it

lvZic commented 5 months ago

@hjo111 Edit the file setup.py to set the correct EIGEN_DIR to Eigen's location. Then enter:make,my EIGEN_DIR is /usr/include/eigen3

I did so, but it just appeared a zillion errors

how did u solved it?

i did not solve it

change line 14 to "extra_compile_args += ["-std=c++17"]"

Zvyozdo4ka commented 5 months ago

change line 14 to "extra_compile_args += ["-std=c++17"]"

in which file?

lvZic commented 5 months ago

Referen

setup.py