Comments (6)
@joeylitalien Whoops, my bad. Somehow I managed to skip over that part of the setup. I've now built the extensions and have gotten the neural network to train on the armadillo example. However, when I run the following command to export the .npz file:
python app/sdf_renderer.py \ --net OctreeSDF \ --num-lods 5 \ --pretrained _results/models/armadillo.pth \ --render-res 1280 720 \ --shading-mode matcap \ --lod 4 --export armadillo.npz
I get the following error:
Total number of parameters: 10146213 Traceback (most recent call last): File "app/sdf_renderer.py, line 106, in <module> net = SOL_NGLOD(net) File "~/Documents/nglod/sdf-net/lib/models/SOL_NGLOD.py", line 50, in __init__ self.vs = voxel_sparsify(2000000, net, self.lod, sol=False) File "~/Documents/nglod/sdf-net/lib/renderutils.py", line 63, in voxel_sparsify surface = sample_surface(n, net, sol=sol, device=device)[:n] File "~/Documents/nglod/sdf-net/lib/renderutils.py", line 33, in sample_surface tracer = SphereTracer(device, sol=sol) TypeError: __init__() got an unexpected keyword argument 'sol'
Hi @kingcodefish I'm just wondering have you solved the TypeError: __init__() got an unexpected keyword argument 'sol'
issue? Thank you!
from nglod.
@tovacinni Thanks for getting back so quickly. Looking forward to it.
I went ahead and tried the .npz files on the other issues with the real-time renderer portion as well, but all I get is this:
Attempting to zoom in or out or really do anything instantly crashes the program leaving the console error:
NLOD Demo starting...
GPU Device 0: "Pascal" with compute capability 6.1
terminate called after throwing an instance of 'c10::CUDAError'
what(): CUDA error: an illegal memory access was encountered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Exception raised from nonzero_cuda_out_impl at /pytorch/aten/src/ATen/native/cuda/Nonzero.cu:64 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x6b (0x7f278f51970b in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libc10.so)
frame #1: void at::native::nonzero_cuda_out_impl<bool>(at::Tensor const&, at::Tensor&) + 0x136f (0x7f269cacba5f in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cuda_cu.so)
frame #2: at::native::nonzero_out_cuda(at::Tensor const&, at::Tensor&) + 0x1eb (0x7f269caab29b in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cuda_cu.so)
frame #3: at::native::nonzero_cuda(at::Tensor const&) + 0x105 (0x7f269caab755 in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cuda_cu.so)
frame #4: <unknown function> + 0x2926ecd (0x7f269d8d8ecd in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cuda_cu.so)
frame #5: <unknown function> + 0x2926f30 (0x7f269d8d8f30 in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cuda_cu.so)
frame #6: <unknown function> + 0x18d3e44 (0x7f26e89dae44 in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cpu.so)
frame #7: at::redispatch::nonzero(c10::DispatchKeySet, at::Tensor const&) + 0x63 (0x7f26e89e4b83 in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cpu.so)
frame #8: <unknown function> + 0x33bbdaf (0x7f26ea4c2daf in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cpu.so)
frame #9: <unknown function> + 0x33bbec3 (0x7f26ea4c2ec3 in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cpu.so)
frame #10: at::nonzero(at::Tensor const&) + 0x124 (0x7f26e86a56a4 in ~/Documents/nglod/sol-renderer/third-party/libtorch/lib/libtorch_cpu.so)
frame #11: <unknown function> + 0x410f3 (0x556a9759b0f3 in ./sdfRenderer)
frame #12: <unknown function> + 0x27a27 (0x556a97581a27 in ./sdfRenderer)
frame #13: <unknown function> + 0x1906a (0x556a9757306a in ./sdfRenderer)
frame #14: <unknown function> + 0x20194 (0x7f278fa6a194 in /lib/x86_64-linux-gnu/libglut.so.3)
frame #15: fgEnumWindows + 0x39 (0x7f278fa6dc39 in /lib/x86_64-linux-gnu/libglut.so.3)
frame #16: glutMainLoopEvent + 0x1cd (0x7f278fa6a7bd in /lib/x86_64-linux-gnu/libglut.so.3)
frame #17: glutMainLoop + 0x65 (0x7f278fa6aff5 in /lib/x86_64-linux-gnu/libglut.so.3)
frame #18: <unknown function> + 0x19dac (0x556a97573dac in ./sdfRenderer)
frame #19: __libc_start_main + 0xf3 (0x7f269a8970b3 in /lib/x86_64-linux-gnu/libc.so.6)
frame #20: <unknown function> + 0x1726e (0x556a9757126e in ./sdfRenderer)
Aborted (core dumped)
I am using CUDA 11.1 btw with Python 3.8.8 and the latest PyTorch for CUDA 11.1 support on Ubuntu 20.0.4 and an NVIDIA Titan X (Pascal).
I assume this is the same issue in #5. Just want to bring it to your attention again and ask if there is anything I might be able to try on my end to resolve it (changing CUDA toolkit, pytorch?).
from nglod.
Hi @kingcodefish,
Our codebase relies on two custom CUDA kernels which can be found in sdf-net/lib/extensions
, where mesh2sdf
is one of them. You can refer to our read-me file for install instructions. What other dependency issues were you having?
from nglod.
@joeylitalien Whoops, my bad. Somehow I managed to skip over that part of the setup. I've now built the extensions and have gotten the neural network to train on the armadillo example. However, when I run the following command to export the .npz file:
python app/sdf_renderer.py \
--net OctreeSDF \
--num-lods 5 \
--pretrained _results/models/armadillo.pth \
--render-res 1280 720 \
--shading-mode matcap \
--lod 4
--export armadillo.npz
I get the following error:
Total number of parameters: 10146213
Traceback (most recent call last):
File "app/sdf_renderer.py, line 106, in <module>
net = SOL_NGLOD(net)
File "~/Documents/nglod/sdf-net/lib/models/SOL_NGLOD.py", line 50, in __init__
self.vs = voxel_sparsify(2000000, net, self.lod, sol=False)
File "~/Documents/nglod/sdf-net/lib/renderutils.py", line 63, in voxel_sparsify
surface = sample_surface(n, net, sol=sol, device=device)[:n]
File "~/Documents/nglod/sdf-net/lib/renderutils.py", line 33, in sample_surface
tracer = SphereTracer(device, sol=sol)
TypeError: __init__() got an unexpected keyword argument 'sol'
from nglod.
A lot of this is affected by some recent refactors we've had which includes deprecating some of the exporting capabilities to opt for a Python-based interactive renderer. Said Python-based renderer isn't available yet but will be soon (hopefully over the weekend)!
from nglod.
@joeylitalien Whoops, my bad. Somehow I managed to skip over that part of the setup. I've now built the extensions and have gotten the neural network to train on the armadillo example. However, when I run the following command to export the .npz file:
python app/sdf_renderer.py \ --net OctreeSDF \ --num-lods 5 \ --pretrained _results/models/armadillo.pth \ --render-res 1280 720 \ --shading-mode matcap \ --lod 4 --export armadillo.npz
I get the following error:
Total number of parameters: 10146213 Traceback (most recent call last): File "app/sdf_renderer.py, line 106, in <module> net = SOL_NGLOD(net) File "~/Documents/nglod/sdf-net/lib/models/SOL_NGLOD.py", line 50, in __init__ self.vs = voxel_sparsify(2000000, net, self.lod, sol=False) File "~/Documents/nglod/sdf-net/lib/renderutils.py", line 63, in voxel_sparsify surface = sample_surface(n, net, sol=sol, device=device)[:n] File "~/Documents/nglod/sdf-net/lib/renderutils.py", line 33, in sample_surface tracer = SphereTracer(device, sol=sol) TypeError: __init__() got an unexpected keyword argument 'sol'
how did you solve this problem( TypeError: init() got an unexpected keyword argument 'sol') in the end?Thank you!
from nglod.
Related Issues (20)
- Crash using Kaolin SPC HOT 2
- Building sol-rendere: CMAKE_CUDA_COMPILER not set, after EnableLanguage
- Render OBJ files HOT 2
- Question about modeling a 3d shape using marching cube HOT 5
- Question about generate parents in create_trinkets.
- Installation Help HOT 2
- Rendering on Mobile
- The accuracy of predicted sdf function
- ModuleNotFoundError: No module named 'sol_nglod'
- Mismatched model size for different LODs HOT 1
- Args to Export .npz File HOT 4
- Can't export .npz files HOT 1
- abbreviation problem HOT 1
- Can you share chamfer distance evaluation code for SPC part?
- Training with surface normal / sdf gradient supervision HOT 1
- Storage problem of your paper HOT 2
- About rendering 3D models HOT 1
- Building CUDA extensions failed HOT 1
- ShapeNet150 data HOT 2
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 nglod.