Comments (19)
@maartenjv Yes that's the problem I mentioned before.
You just need to find rasterize_cuda_kernel.cu, open it with any text editor and find atomicAdd(),
replace the function with
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 600
#else
static __inline__ __device__ double atomicAdd(double *address, double val) {
unsigned long long int* address_as_ull = (unsigned long long int*)address;
unsigned long long int old = *address_as_ull, assumed;
if (val==0.0)
return __longlong_as_double(old);
do {
assumed = old;
old = atomicCAS(address_as_ull, assumed, __double_as_longlong(val +__longlong_as_double(assumed)));
} while (assumed != old);
return __longlong_as_double(old);
}
#endif
leave a comment if you succeed
from neural_renderer.
yes you just find the torch.h file and delete the 7th line,
and you may encounter another problem, then comment again, I will show you how to fix @maartenjv
from neural_renderer.
I've compiled using conda , did you compile from pulled git and not pip install of neural renderer?
from neural_renderer.
There is no support for Windows currently and I don't plan to support it in the future either.
from neural_renderer.
after a long time struggling, i build this on windows, if you need you can write Emali:[email protected] to me if you wish
from neural_renderer.
Hello, I have the same problem, getting many of these messages during install:
warning C4251: 'torch::optim::RMSprop::grad_average_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop' with [ _Ty=at::Tensor ]
And finally this one:
C:\ProgramData\Anaconda3\lib\site-packages\torch\include\torch\csrc\api\include\torch/torch.h(7): fatal error C1021: invalid preprocessor command 'warning'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2
I am running Windows 7, Anaconda 3, CUDA 10, pytorch 1.1.0
from neural_renderer.
Thanks, it seems to be going on for longer now, although the dll warnings are still there.
Now there is a different error:
neural_renderer/cuda/rasterize_cuda_kernel.cu(9): error: function "atomicAdd(double *, double)" has already been defined
1 error detected in the compilation of "....../AppData/Local/Temp/tmpxft_00001ee4_00000000-8_rasterize_cuda_kernel.cpp4.ii".
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe' failed with exit status 2
from neural_renderer.
seems to be working, ill test some more.
thanks a lot!
from neural_renderer.
solved issues with windows install , thanks mate!
from neural_renderer.
@BingEdison , hey mate, I created a venv and installed neural-renderer after modifying the rasterize_cuda_kernel.cu and everything installed. However I do get a warning in the early stages of the build - error checking for compiler version, but it proceeds and installs neural-renderer within this venv.
When i try to test one of the examples, I get a ImportError as follows
Traceback (most recent call last):
File "example4.py", line 15, in <module>
import neural_renderer as nr
File "E:\Git Repos\neural_renderer\nr\lib\site-packages\neural_renderer_pytorch-1.1.3-py3.6-win-amd64.egg\neural_renderer\__init__.py", line 3, in <module>
from .load_obj import load_obj
File "E:\Git Repos\neural_renderer\nr\lib\site-packages\neural_renderer_pytorch-1.1.3-py3.6-win-amd64.egg\neural_renderer\load_obj.py", line 8, in <module>
import neural_renderer.cuda.load_textures as load_textures_cuda
ImportError: DLL load failed: The specified module could not be found.
Do you have suggestions?
from neural_renderer.
Yes, I am working on the pulled git. Which branch did you use ? @BingEdison
from neural_renderer.
It worked for me. @Zju-George Thanks a million!
from neural_renderer.
@Zju-George Thank u so much, it work for me
from neural_renderer.
@huytuong010101 Where did you find the torch.h file? I'm struggling on this installation
from neural_renderer.
Would anyone please tell me which line of torch.h I actually need to delete?
Mine's has nothing on line7, which is troublesome. I tried installing for more than a month.
from neural_renderer.
hi, you can find torch related files in your anaconda spin virtual environment. Just search "torch.h" there. Mine is "Anaconda3\envs\spin\Lib\site-packages\torch\include\torch\csrc\api\include\torch\torch.h"
@huytuong010101 Where did you find the torch.h file? I'm struggling on this installation
Hi, you can find torch related files in your anaconda spin virtual environment. Just search "torch.h" there. Mine is "Anaconda3\envs\spin\Lib\site-packages\torch\include\torch\csrc\api\include\torch\torch.h"
from neural_renderer.
Would anyone please tell me which line of torch.h I actually need to delete? Mine's has nothing on line7, which is troublesome. I tried installing for more than a month.
Hi, you should delete line 7 of torch.h, which is shown below.
#warning \ "Including torch/torch.h for C++ extensions is deprecated. Please include torch/extension.h"
from neural_renderer.
Thanks to all the instructions above, I have just installed neural_renderer_pytorch successfully in Win10. (using neural_renderer_pytorch-win10 version)
Here I'd like to give one tip we might use while installing. After following the above steps, we may still find errors like this.
neural_renderer/cuda/load_textures_cuda_kernel.cu(103): error: calling a __host__ function("__roundf") from a __global__ function("_NV_ANON_NAMESPACE::load_textures_cuda_kernel<float> ") is not allowed
At this time, you need to change the "floor/ceil/round" into "floorf/ceilf/roundf" in the corresponding source code. Then the errors would disappear.
Hope this notice helps you all :)
from neural_renderer.
My environment is windows10, torch1.8, cuda11.3. Running python setup.py install reports the following error. What is the problem
from neural_renderer.
Related Issues (20)
- Obtaining silhouettes of multiple objects
- i get an error when i try to save obj with textures HOT 3
- ValueError: not enough values to unpack (expected 3, got 1) HOT 3
- cuda10.2 torch1.7.1 install fail
- problem about 'python setup.py install' HOT 1
- it haves some error in cuda11.4 HOT 3
- The variable of camera_up is not defined
- cannot run renderer on any other GPU other than GPU 0 HOT 1
- ImportError: /data/user/anconda3/envs/neural_test/lib/python3.7/site-packages/neural_renderer/cuda/load_textures.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceIdEEPKNS_6detail12TypeMetaDataEv HOT 3
- Error in forward_face_index_map_1: invalid device function Error in forward_face_index_map_2: invalid device function Error in forward_texture_sampling: invalid device function HOT 2
- Render Silhouette For A Trimesh Object
- Render 2D Silhouette For an Input Image
- Support for macOS Apple chip HOT 1
- fails to build on Google Colab with CUDA 10.2
- RuntimeError: Error compiling objects for extension even after changing the ``AT_CHECK`` HOT 5
- The problem of python setup.py install HOT 3
- For those who are new to the installation errors HOT 4
- unknown setup problem, RTX 3090 + cuda 11.1, already convert AT_CHECK to TROCH_CHECK HOT 2
- ValueError: mode should be one of None, 'silhouettes' or 'depth' HOT 1
- pip install neural_renderer_pytorch ERROR: Could not build wheels for neural_renderer_pytorch, which is required to install pyproject.toml-based projects HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neural_renderer.