• 大小: 162KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-05-15
  • 语言: 其他
  • 标签: 图像  

资源简介

可顺利安装neural_renderer库,解决了一大串的红色错误,错误应该是库的版本导致的,各个库的版本不一致,然后这个库的作者也不太靠谱。。。

资源截图

代码片段和文件信息

from setuptools import setup find_packages
import unittest

from torch.utils.cpp_extension import BuildExtension CUDAExtension

CUDA_FLAGS = []

def test_all():
    test_loader = unittest.TestLoader()
    test_suite = test_loader.discover(‘tests‘ pattern=‘test_*.py‘)
    return test_suite

ext_modules=[
    CUDAExtension(‘neural_renderer.cuda.load_textures‘ [
        ‘neural_renderer/cuda/load_textures_cuda.cpp‘
        ‘neural_renderer/cuda/load_textures_cuda_kernel.cu‘
        ])
    CUDAExtension(‘neural_renderer.cuda.rasterize‘ [
        ‘neural_renderer/cuda/rasterize_cuda.cpp‘
        ‘neural_renderer/cuda/rasterize_cuda_kernel.cu‘
        ])
    CUDAExtension(‘neural_renderer.cuda.create_texture_image‘ [
        ‘neural_renderer/cuda/create_texture_image_cuda.cpp‘
        ‘neural_renderer/cuda/create_texture_image_cuda_kernel.cu‘
        ])
    ]

INSTALL_REQUIREMENTS = [‘numpy‘ ‘torch‘ ‘torchvision‘ ‘scikit-image‘ ‘tqdm‘ ‘imageio‘]

setup(
    description=‘PyTorch implementation of “A 3D mesh renderer for neural networks“‘
    author=‘Nikolaos Kolotouros‘
    author_email=‘nkolot@seas.upenn.edu‘
    license=‘MIT License‘
    version=‘1.1.3‘
    name=‘neural_renderer‘
    test_suite=‘setup.test_all‘
    packages=[‘neural_renderer‘ ‘neural_renderer.cuda‘]
    install_requires=INSTALL_REQUIREMENTS
    ext_modules=ext_modules
    cmdclass = {‘build_ext‘: BuildExtension}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-11-21 13:29  neural_renderer\
     文件         174  2019-11-21 13:29  __MACOSX\._neural_renderer
     文件        6044  2019-11-21 13:29  neural_renderer\files.txt
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\._files.txt
     文件        1209  2019-11-21 13:29  neural_renderer\LICENSE
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\._LICENSE
     目录           0  2019-11-21 13:29  neural_renderer\neural_renderer\
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\._neural_renderer
     目录           0  2019-11-21 13:29  neural_renderer\tests\
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\._tests
     文件           0  2019-11-21 13:29  neural_renderer\__init__.py
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\.___init__.py
     文件        3462  2019-11-21 13:29  neural_renderer\README.md
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\._README.md
     文件        1430  2019-11-21 13:29  neural_renderer\setup.py
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\._setup.py
     文件        1435  2019-11-21 13:29  neural_renderer\.gitignore
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\._.gitignore
     目录           0  2019-11-21 13:29  neural_renderer\examples\
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\._examples
     文件        2059  2019-11-21 13:29  neural_renderer\neural_renderer\look_at.py
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\neural_renderer\._look_at.py
     文件         746  2019-11-21 13:29  neural_renderer\neural_renderer\vertices_to_faces.py
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\neural_renderer\._vertices_to_faces.py
     文件       21945  2019-11-21 13:29  neural_renderer\neural_renderer\rasterize.py
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\neural_renderer\._rasterize.py
     文件         632  2019-11-21 13:29  neural_renderer\neural_renderer\perspective.py
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\neural_renderer\._perspective.py
     文件        5233  2019-11-21 13:29  neural_renderer\neural_renderer\load_obj.py
     文件         174  2019-11-21 13:29  __MACOSX\neural_renderer\neural_renderer\._load_obj.py
     文件       15213  2019-11-21 13:29  neural_renderer\neural_renderer\renderer.py
............此处省略99个文件信息

评论

共有 条评论