TerenceCYJ / S2HAND

Model-based 3D Hand Reconstruction via Self-Supervised Learning, CVPR2021
104 stars 13 forks source link

pytorch1.1 cuda10.0 while building neural renders,I met warning #1388-D: base class dllexport/dllimport specification differs from that of the derived class #20

Closed wxdongg99 closed 1 year ago

wxdongg99 commented 1 year ago

when I use pytorch1.1.0,build neural renders, by vs2017, it appear the pytorch's version is uncompatible with cl because i met many warnings.Though I build it successfully,it can't work when I train S2HAND.It just waiting a long time I also try to run "example1.py",I tracked the operation and found that there was no response after entering the function of load_obj After running this code, the graphics card does not work properly, and the occupation is still 0%,my graphic card is 3080,does that means I have to degrade my version? Hope some one could help me!

vertices = torch.from_numpy(np.vstack(vertices).astype(np.float32)).cuda()

def load_obj(filename_obj, normalization=True, texture_size=4, load_texture=False,
             texture_wrapping='REPEAT', use_bilinear=True):

    # load vertices
    vertices = []
    with open(filename_obj) as f:
        lines = f.readlines()

    for line in lines:
        if len(line.split()) == 0:
            continue
        if line.split()[0] == 'v':
            vertices.append([float(v) for v in line.split()[1:4]])
    vertices = torch.from_numpy(np.vstack(vertices).astype(np.float32)).cuda()

building process:

copying neural_renderer\cuda\__init__.py -> build\lib.win-amd64-cpython-37\neural_renderer\cuda
running build_ext
building 'neural_renderer.cuda.load_textures' extension
creating build\temp.win-amd64-cpython-37
creating build\temp.win-amd64-cpython-37\Release
creating build\temp.win-amd64-cpython-37\Release\neural_renderer
creating build\temp.win-amd64-cpython-37\Release\neural_renderer\cuda
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\TH -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\include -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpneural_renderer/cuda/load_textures_cuda.cpp /Fobuild\temp.win-amd64-cpython-37\Release\neural_renderer/cuda/load_textures_cuda.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 /MD
load_textures_cuda.cpp
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/util/Exception.h(27): warning C4275: 非 dll 接口 class“std::exception”用作 dll 接口 class“c10::Error”的基
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\vcruntime_exception.h(44): note: 参见“std::exception”的声明
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/util/Exception.h(27): note: 参见“c10::Error”的声明
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/util/Exception.h(28): warning C4251: “c10::Error::msg_stack_”: class“std::vector<std::string,std::allocator<_Ty>>”需要有 dll 接口由 class“c10::Error”的客户端使用
        with
        [
            _Ty=std::string
        ]
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/util/Exception.h(28): note: 参见“std::vector<std::string,std::allocator<_Ty>>”的声明
        with
        [
            _Ty=std::string
        ]
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/util/Exception.h(29): warning C4251: “c10::Error::backtrace_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 class“c10::Error”的客户端使用
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”的声明
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/util/Exception.h(34): warning C4251: “c10::Error::msg_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 class“c10::Error”的客户端使用
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”的声明
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/util/Exception.h(35): warning C4251: “c10::Error::msg_without_backtrace_”: class“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”需要有 dll 接口由 class“c10::Error”的客户端使用
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: 参 见“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”的声明
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/core/Allocator.h(21): warning C4251: “c10::DataPtr::ptr_”: class“c10::detail::UniqueVoidPtr”需要有 dll 接口由 class“c10::DataPtr”的客户端使用
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/util/UniqueVoidPtr.h(38): note: 参 见“c10::detail::UniqueVoidPtr”的声明
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/core/Allocator.h(183): warning C4251: “c10::InefficientStdFunctionContext::ptr_”: class“std::unique_ptr<void,std::function<void (void *)>>”需要有 dll 接口 由 struct“c10::InefficientStdFunctionContext”的客户端使用
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/core/Allocator.h(183): note: 参见“std::unique_ptr<void,std::function<void (void *)>>”的声明
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(32): warning C4251: “c10::TensorTypeIdCreator::last_id_”: struct“std::atomic<unsigned char>”需要有 dll 接口由 class“c10::TensorTypeIdCreator”的客户端使用
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: 参 见“std::atomic<unsigned char>”的声明
D:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\c10/core/TensorTypeIdRegistration.h(45): warning C4251: “c10::TensorTypeIdRegistry::registeredTypeIds_”: class“std::unordered_set<c10::TensorTypeId,std::hash<c10::TensorTypeId>,std::equal_to<_Kty>,std::allocator<_Kty>>”需要有 dll 接口由 class“c10::TensorTypeIdRegistry”的客户端使用
        with
        [
            _Kty=c10::TensorTypeId
        ]
.....
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc" -c neural_renderer/cuda/load_textures_cuda_kernel.cu -o build\temp.win-amd64-cpython-37\Release\neural_renderer/cuda/load_textures_cuda_kernel.obj -Xcompiler /wd4819 -Xcompiler /MD -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\TH -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\include -ID:\Learn\anaconda3\envs\pytorch1_1py3_7\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0
load_textures_cuda_kernel.cu
D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(27): warning #1388-D: base class dllexport/dllimport specification differs from that of the derived class

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(28): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(29): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(34): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(35): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/Allocator.h(21): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/Allocator.h(183): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorTypeIdRegistration.h(32): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorTypeIdRegistration.h(45): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorTypeIdRegistration.h(46): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(456): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeMeta::_typeMetaDataInstance [with T=caffe2::detail::_Uninitialized]"
(452): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(577): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=uint8_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(578): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int8_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(579): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int16_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(580): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(581): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int64_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(582): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=c10::Half]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(583): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=float]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(584): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=double]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(585): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=c10::ComplexHalf]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(586): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::complex<float>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(587): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::complex<double>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(590): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::string]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(591): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=__nv_bool]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(592): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=uint16_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(593): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=char]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(594): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::unique_ptr<std::mutex, std::default_delete<std::mutex>>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(595): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::unique_ptr<std::atomic<__nv_bool>, std::default_delete<std::atomic<__nv_bool>>>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(596): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::vector<int32_t, std::allocator<int32_t>>]"(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(597): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::vector<int64_t, std::allocator<int64_t>>]"(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(598): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::vector<unsigned long, std::allocator<unsigned long>>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(599): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=__nv_bool *]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(600): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=char *]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(601): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int *]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(621): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=long]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(622): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::vector<long, std::allocator<long>>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(626): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=c10::qint8]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(628): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=caffe2::_CaffeHighestPreallocatedTypeId]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/intrusive_ptr.h(58): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/intrusive_ptr.h(59): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/Storage.h(181): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/logging_is_not_google_glog.h(47): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(193): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(1466): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(1476): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(1477): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(1499): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/core/Tensor.h(773): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/core/Tensor.h(801): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(151): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(152): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(153): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(157): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(158): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(159): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/TensorGeometry.h(56): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/TensorGeometry.h(57): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(27): warning #1388-D: base class dllexport/dllimport specification differs from that of the derived class

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(28): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(29): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(34): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/Exception.h(35): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/Allocator.h(21): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/Allocator.h(183): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorTypeIdRegistration.h(32): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorTypeIdRegistration.h(45): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorTypeIdRegistration.h(46): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(456): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeMeta::_typeMetaDataInstance [with T=caffe2::detail::_Uninitialized]"
(452): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(577): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=uint8_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(578): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int8_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(579): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int16_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(580): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(581): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int64_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(582): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=c10::Half]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(583): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=float]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(584): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=double]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(585): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=c10::ComplexHalf]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(586): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::complex<float>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(587): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::complex<double>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(590): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::string]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(591): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=bool]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(592): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=uint16_t]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(593): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=char]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(594): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::unique_ptr<std::mutex, std::default_delete<std::mutex>>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(595): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::unique_ptr<std::atomic<bool>, std::default_delete<std::atomic<bool>>>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(596): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::vector<int32_t, std::allocator<int32_t>>]"(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(597): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::vector<int64_t, std::allocator<int64_t>>]"(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(598): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::vector<unsigned long, std::allocator<unsigned long>>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(599): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=bool *]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(600): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=char *]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(601): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=int *]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(621): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=long]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(622): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=std::vector<long, std::allocator<long>>]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(626): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=c10::qint8]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/typeid.h(628): warning #1390-D: dllexport/dllimport conflict with "caffe2::TypeIdentifier::Get [with T=caffe2::_CaffeHighestPreallocatedTypeId]"
(81): here; dllexport assumed

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/intrusive_ptr.h(58): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/intrusive_ptr.h(59): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/Storage.h(181): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/util/logging_is_not_google_glog.h(47): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(193): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(1466): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(1476): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(1477): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\c10/core/TensorImpl.h(1499): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/core/Tensor.h(773): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/core/Tensor.h(801): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(151): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(152): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(153): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(157): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(158): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/Context.h(159): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/TensorGeometry.h(56): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface

D:/Learn/anaconda3/envs/pytorch1_1py3_7/lib/site-packages/torch/include\ATen/TensorGeometry.h(57): warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface
......
正在生成代码
已完成代码的生成
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\neural_renderer
creating build\bdist.win-amd64\egg\neural_renderer\cuda
copying build\lib.win-amd64-cpython-37\neural_renderer\cuda\create_texture_image.cp37-win_amd64.pyd -> build\bdist.win-amd64\egg\neural_renderer\cuda
copying build\lib.win-amd64-cpython-37\neural_renderer\cuda\load_textures.cp37-win_amd64.pyd -> build\bdist.win-amd64\egg\neural_renderer\cuda
copying build\lib.win-amd64-cpython-37\neural_renderer\cuda\rasterize.cp37-win_amd64.pyd -> build\bdist.win-amd64\egg\neural_renderer\cuda
copying build\lib.win-amd64-cpython-37\neural_renderer\cuda\__init__.py -> build\bdist.win-amd64\egg\neural_renderer\cuda
copying build\lib.win-amd64-cpython-37\neural_renderer\get_points_from_angles.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\lighting.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\load_obj.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\look.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\look_at.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\mesh.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\perspective.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\projection.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\rasterize.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\renderer.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\save_obj.py -> build\bdist.win-amd64\egg\neural_renderer
copying build\lib.win-amd64-cpython-37\neural_renderer\vertices_to_faces.py -> build\bdist.win-amd64\egg\neural_renderercopying build\lib.win-amd64-cpython-37\neural_renderer\__init__.py -> build\bdist.win-amd64\egg\neural_renderer
byte-compiling build\bdist.win-amd64\egg\neural_renderer\cuda\__init__.py to __init__.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\get_points_from_angles.py to get_points_from_angles.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\lighting.py to lighting.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\load_obj.py to load_obj.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\look.py to look.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\look_at.py to look_at.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\mesh.py to mesh.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\perspective.py to perspective.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\projection.py to projection.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\rasterize.py to rasterize.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\renderer.py to renderer.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\save_obj.py to save_obj.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\vertices_to_faces.py to vertices_to_faces.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\__init__.py to __init__.cpython-37.pyc
creating stub loader for neural_renderer\cuda\load_textures.cp37-win_amd64.pyd
creating stub loader for neural_renderer\cuda\rasterize.cp37-win_amd64.pyd
creating stub loader for neural_renderer\cuda\create_texture_image.cp37-win_amd64.pyd
byte-compiling build\bdist.win-amd64\egg\neural_renderer\cuda\load_textures.py to load_textures.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\cuda\rasterize.py to rasterize.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\neural_renderer\cuda\create_texture_image.py to create_texture_image.cpython-37.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying neural_renderer_pytorch.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying neural_renderer_pytorch.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying neural_renderer_pytorch.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying neural_renderer_pytorch.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
zip_safe flag not set; analyzing archive contents...
neural_renderer.cuda.__pycache__.create_texture_image.cpython-37: module references __file__
neural_renderer.cuda.__pycache__.load_textures.cpython-37: module references __file__
neural_renderer.cuda.__pycache__.rasterize.cpython-37: module references __file__
creating 'dist\neural_renderer_pytorch-1.1.3-py3.7-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing neural_renderer_pytorch-1.1.3-py3.7-win-amd64.egg
removing 'd:\learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\neural_renderer_pytorch-1.1.3-py3.7-win-amd64.egg' (and everything under it)
creating d:\learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\neural_renderer_pytorch-1.1.3-py3.7-win-amd64.egg
Extracting neural_renderer_pytorch-1.1.3-py3.7-win-amd64.egg to d:\learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages
neural-renderer-pytorch 1.1.3 is already the active version in easy-install.pth

Installed d:\learn\anaconda3\envs\pytorch1_1py3_7\lib\site-packages\neural_renderer_pytorch-1.1.3-py3.7-win-amd64.egg
Processing dependencies for neural-renderer-pytorch==1.1.3
Finished processing dependencies for neural-renderer-pytorch==1.1.3

env: python3.7, torch 1.1.0 torchvision 0.3.0 cuda10.0

wxdongg99 commented 1 year ago

Oh,I solve it by adjusting some codes.