Download AnchorUDF/ChamferDistancePytorch/chamfer3D/setup.py from Timilehin/2D-3D: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/Timilehin/2D-3D/resolve/main/AnchorUDF/ChamferDistancePytorch/chamfer3D/setup.py
- Command line
-
hf download hf://spaces/Timilehin/2D-3D/AnchorUDF/ChamferDistancePytorch/chamfer3D/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/Timilehin/2D-3D/resolve/main/AnchorUDF/ChamferDistancePytorch/chamfer3D/setup.py
398 Bytes
| from setuptools import setup | |
| from torch.utils.cpp_extension import BuildExtension, CUDAExtension | |
| setup( | |
| name='chamfer_3D', | |
| ext_modules=[ | |
| CUDAExtension('chamfer_3D', [ | |
| "/".join(__file__.split('/')[:-1] + ['chamfer_cuda.cpp']), | |
| "/".join(__file__.split('/')[:-1] + ['chamfer3D.cu']), | |
| ]), | |
| ], | |
| cmdclass={ | |
| 'build_ext': BuildExtension | |
| }) |