stevenygd / PointFlow

PointFlow : 3D Point Cloud Generation with Continuous Normalizing Flows
https://www.guandaoyang.com/PointFlow/
MIT License
720 stars 101 forks source link

StructuralLosses/StructuralLossessBackend #29

Closed berwingan closed 3 years ago

berwingan commented 3 years ago

From the match_cost.py file, I see "from metrics.StructuralLosses.StructuralLossesBackend import ApproxMatch, MatchCost, MatchCostGrad"

Currently when compiling I get a warning and instead of including the StructuralLossessBackend.py , my metrics/StructuralLosses/ directory contains a init.py, match_cost.py, nn_distance.py and StructuralLossesBackend.cpython-36m-x86_64-linus-gnu.so.

I am wondering if instead of StructuralLossesBackend.cpython-36m-x86_64-linus-gnu.so I should have a StructuralLossessBackend.py after compiling ? I can see the functions in metrics/pytorch_structural_losses/src/structural_loss.cpp but I'm not where in the metrics/StructuralLosses/ directory the match_cost.py file is importing from.

I am currently running gcc5.2.0, pytorch 1.0.1 and cuda 10.0. Any advice would be greatly appreciated.

This warning:

**creating build/temp.linux-x86_64-3.6/pybind gcc -pthread -B /scratch/wqg203/conda-envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./ -I/scratch/wqg203/conda-envs/pytorch/lib/python3.6/site-packages/torch/lib/include -I/scratch/wqg203/conda-envs/pytorch/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/scratch/wqg203/conda-envs/pytorch/lib/python3.6/site-packages/torch/lib/include/TH -I/scratch/wqg203/conda-envs/pytorch/lib/python3.6/site-packages/torch/lib/include/THC -I/scratch/wqg203/conda-envs/pytorch2/include -I/scratch/wqg203/conda-envs/pytorch/include/python3.6m -c pybind/bind.cpp -o build/temp.linux-x86_64-3.6/pybind/bind.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=StructuralLossesBackend -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++

g++ -pthread -shared -B /scratch/wqg203/conda-envs/pytorch/compiler_compat -L/scratch/wqg203/conda-envs/pytorch/lib -Wl,-rpath=/scratch/wqg203/conda-envs/pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/pybind/bind.o -Lobjs -L/scratch/wqg203/conda-envs/pytorch2/lib64 -lmake_pytorch -lcudart -o build/lib.linux-x86_64-3.6/StructuralLossesBackend.cpython-36m-x86_64-linux-gnu.so**