Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can u tell me how to address the issue of spatialsearch #3

Open
QUTGXX opened this issue Jul 13, 2020 · 18 comments
Open

Can u tell me how to address the issue of spatialsearch #3

QUTGXX opened this issue Jul 13, 2020 · 18 comments

Comments

@QUTGXX
Copy link

QUTGXX commented Jul 13, 2020

It shows that ImportError: cannot import name 'spatialsearch' from 'lib'

@HOMGH
Copy link

HOMGH commented Jul 13, 2020

It shows that ImportError: cannot import name 'spatialsearch' from 'lib'

I have the same problem. There is just a "spatialsearch...... .so" file in lib folder!

@FuxiCV
Copy link
Owner

FuxiCV commented Jul 14, 2020

Sorry for the inconvenience, the "spatialsearch" comes from the "Perceiving Systems Mesh Package" (https://github.com/MPI-IS/mesh) mentioned in the readme file.
The "spatialsearch...... .so" was compiled under python 3.5 and Linux, if you want to run on other environments, you may refer to https://github.com/MPI-IS/mesh and install the "Perceiving Systems Mesh Package".

@QUTGXX
Copy link
Author

QUTGXX commented Jul 14, 2020

Sorry for the inconvenience, the "spatialsearch" comes from the "Perceiving Systems Mesh Package" (https://github.com/MPI-IS/mesh) mentioned in the readme file.
The "spatialsearch...... .so" was compiled under python 3.5 and Linux, if you want to run on other environments, you may refer to https://github.com/MPI-IS/mesh and install the "Perceiving Systems Mesh Package".

Thanks for your reply, I have tried to install the package followed by the steps mentioned on the Github. When I tried to 'make tests', its successes. But 'spatialsearch' still not work.

@HOMGH
Copy link

HOMGH commented Jul 14, 2020

Sorry for the inconvenience, the "spatialsearch" comes from the "Perceiving Systems Mesh Package" (https://github.com/MPI-IS/mesh) mentioned in the readme file.
The "spatialsearch...... .so" was compiled under python 3.5 and Linux, if you want to run on other environments, you may refer to https://github.com/MPI-IS/mesh and install the "Perceiving Systems Mesh Package".

Thank you for your quick reply. I'm actually working on Python3.5 and Linux. So I don't need to install "Perceiving Systems Mesh Package" again? But how can I import spatialsearch? because its not .py, its .so.
Should I convert this "spatialsearch.... .so" and also "aabb_normals.... .so" to .py file?

@FuxiCV
Copy link
Owner

FuxiCV commented Jul 14, 2020

Hey, if you install the "Perceiving Systems Mesh Package" successfully, then "import spatialsearch" is not needed. Most of the mesh sampling code is borrowed from CoMA (https://github.com/anuragranj/coma/blob/master/lib/mesh_sampling.py), we copy the two .so files to lib folder just for convenience.
You can directly import those .so files if the OS and python version are matched, no need to convert to .py file.

@QUTGXX
Copy link
Author

QUTGXX commented Jul 14, 2020

Hey, if you install the "Perceiving Systems Mesh Package" successfully, then "import spatialsearch" is not needed. Most of the mesh sampling code is borrowed from CoMA (https://github.com/anuragranj/coma/blob/master/lib/mesh_sampling.py), we copy the two .so files to lib folder just for convenience.
You can directly import those .so files if the OS and python version are matched, no need to convert to .py file.

Got it, thanks for your reply. Can u plz tell me the link of input data such as bfm09_face_template.obj and CelebA?

@HOMGH
Copy link

HOMGH commented Jul 14, 2020

Hey, if you install the "Perceiving Systems Mesh Package" successfully, then "import spatialsearch" is not needed. Most of the mesh sampling code is borrowed from CoMA (https://github.com/anuragranj/coma/blob/master/lib/mesh_sampling.py), we copy the two .so files to lib folder just for convenience.
You can directly import those .so files if the OS and python version are matched, no need to convert to .py file.

Got it, thanks for your reply. Can u plz tell me the link of input data such as bfm09_face_template.obj and CelebA?

Hi. Sorry I still have problems in importing .so files. The OS and Python version are matched. So how can I import those .so files?
Thanks.

@deepmo24
Copy link

@QUTGXX @HOMGH Hi,have you solved this problem? I installed the "Perceiving Systems Mesh Package" , too. However, how to solve the "spatialsearch" import error? I would be very appreciated if you could reply!

@deepmo24
Copy link

deepmo24 commented Aug 12, 2020

@FuxiCV Hi, thanks for your great project. In your reply, you said there is no need to "import spatialsearch" when install the "Perceiving Systems Mesh Package". However, in utils.py, we still needs to call "spatialsearch.aabbtree_compute()".

cpp_handle = spatialsearch.aabbtree_compute(

So how to solve this problem? Thank you!

@deepmo24
Copy link

I solved it by from psbody.mesh import spatialsearch after installing the "Perceiving Systems Mesh Package".

@HOMGH
Copy link

HOMGH commented Aug 12, 2020

I solved it by from psbody.mesh import spatialsearch after installing the "Perceiving Systems Mesh Package".

Cool! Could you train the model as well?

@deepmo24
Copy link

@HOMGH No, still facing some problems. please refer to #10 (comment)

@HOMGH
Copy link

HOMGH commented Aug 12, 2020

@HOMGH No, still facing some problems. please refer to #10 (comment)

I think this (#7) would help.

@deepmo24
Copy link

@HOMGH No, still facing some problems. please refer to #10 (comment)

I think this (#7) would help.

Hi, not these files.

@lj6052317
Copy link

I solved it by from psbody.mesh import spatialsearch after installing the "Perceiving Systems Mesh Package".
While installing the "Perceiving Systems Mesh Package",I cannot build successful.

@cyjouc
Copy link

cyjouc commented Jan 15, 2021

Hey, if you install the "Perceiving Systems Mesh Package" successfully, then "import spatialsearch" is not needed. Most of the mesh sampling code is borrowed from CoMA (https://github.com/anuragranj/coma/blob/master/lib/mesh_sampling.py), we copy the two .so files to lib folder just for convenience.
You can directly import those .so files if the OS and python version are matched, no need to convert to .py file.

Got it, thanks for your reply. Can u plz tell me the link of input data such as bfm09_face_template.obj and CelebA?

Hi,could you share the input data processing code with me?Txs o lot

@cyjouc
Copy link

cyjouc commented Jan 19, 2021

CelebA

Hi,Coule you solve the problem for CelebA preprocessing dataset?

@AaryanAshok
Copy link

I solved it by from psbody.mesh import spatialsearch after installing the "Perceiving Systems Mesh Package".

Please explain the procedure, I have installed the "Perceiving Systems Mesh Package" still unable to solve the import error is it the ".so" file or ".py" file and how to import after installation of "Perceiving Systems Mesh Package".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants