Download tddfa/Sim3DR/setup.py from ozyman/fasd: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/spaces/ozyman/fasd/resolve/main/tddfa/Sim3DR/setup.py
- Command line
-
hf download hf://spaces/ozyman/fasd/tddfa/Sim3DR/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/ozyman/fasd/resolve/main/tddfa/Sim3DR/setup.py
579 Bytes
| ''' | |
| python setup.py build_ext -i | |
| to compile | |
| ''' | |
| from distutils.core import setup, Extension | |
| from Cython.Build import cythonize | |
| from Cython.Distutils import build_ext | |
| import numpy | |
| setup( | |
| name='Sim3DR_Cython', # not the package name | |
| cmdclass={'build_ext': build_ext}, | |
| ext_modules=[Extension("Sim3DR_Cython", | |
| sources=["lib/rasterize.pyx", "lib/rasterize_kernel.cpp"], | |
| language='c++', | |
| include_dirs=[numpy.get_include()], | |
| extra_compile_args=["-std=c++11"])], | |
| ) | |