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

libtorch_cpu.so #14

Open
wanglei1006 opened this issue Jul 30, 2020 · 2 comments
Open

libtorch_cpu.so #14

wanglei1006 opened this issue Jul 30, 2020 · 2 comments

Comments

@wanglei1006
Copy link

Dear yifita,
when I run the cage_deformer_3d.py, the following Error arises.

from .._ext import sampling, linalg

ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory

I searched for solutions and found that pytorch1.4.0 has no libtorch_cpu.so or libtorch_cuda.so, and it only has libtorch.so.
While this code only works with pytorch1.4.0, I don't know how to solve this problem.
I appreciate your help, thanks a lot!

============================================================================
(pytorch-all2) wanglei@hmc46:/data2/wanglei/CG/deep_cage$ python cage_deformer_3d.py --dataset SHAPENET --full_net --bottleneck_size 256 --n_fold 2 --ckpt trained_models/chair_ablation_full/net_final.pth --target_model data/shapenet_target/**/*.obj --source_model data/elaborated_chairs/throne_no_base.obj data/elaborated_chairs/Chaise_longue_noir_House_Doctor.ply --subdir fancy_chairs --phase test --is_poly
Traceback (most recent call last):
File "cage_deformer_3d.py", line 14, in
from pytorch_points.network.geo_operations import mean_value_coordinates_3D, edge_vertex_indices
File "/data2/wanglei/CG/deep_cage/pytorch_points/pytorch_points/network/geo_operations.py", line 4, in
from .operations import batch_svd, normalize, dot_product, scatter_add, faiss_knn, cross_product_2D, group_knn, gather_points
File "/data2/wanglei/CG/deep_cage/pytorch_points/pytorch_points/network/operations.py", line 11, in
from .._ext import sampling, linalg
ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory

@cdjkim
Copy link

cdjkim commented Apr 8, 2021

This could be the issue from having built with a different version of pytorch other than 1.4.0, the build folder in pytorch_points will have reminiscent of the legacy. Hence, try deleing the "build" folder and running python setup.py develop again.

@PengYicong
Copy link

This could be the issue from having built with a different version of pytorch other than 1.4.0, the build folder in pytorch_points will have reminiscent of the legacy. Hence, try deleing the "build" folder and running python setup.py develop again.

solved this problem on my machine, thanks!

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

3 participants