Comments (16)
I never met this problem...
from softras.
If you set aggr_funcs or dist_func to "hard", then it's normal that there is no gradient, since standard rendering does not have gradient. Otherwise it's kind of weird.
from softras.
I think it is because of very sharp sigmoid function because of sigma value.
from softras.
Did you check this code can be used in training stage? I successfully integrated this code to my project, however it encounters cuda illegal memory access when backwarding. When I use nerual 3D mesh renderer (https://github.com/daniilidis-group/neural_renderer) and rest of the code is exactly same, it is alright. Can you give me some help?
from softras.
One possible reason I think of is the texture format. We use a different texture format than NMR, which is more memory efficient. Can you please make sure the texture is the same as in the demo?
from softras.
Thank you for your help. I've used vertex texture type and just removed RGB part in cuda code because only silhouette part is what I need. Problem resolved.
from softras.
You mean the right format is 'vetex'?
In your demo, texture format is 'surface', and the format meaning seems same with NMR. Can you explain the difference of texture format more clear?
from softras.
No. I think using vertex as a texture type was the reason of error. It seems like vertex means RGB colors are defined for each vertex. On the other hand, surface texture is defined as a small patch.
from softras.
I use 'vertex' or 'surface' format, and view textures's gradient. If using 'vertex' format, nearly 3000 texture points has gradient, others remain zero. If using 'surface' format, only one texture part has gradient...
from softras.
To correct this, when using surface format, only some fixed texture parts have gradients (their index numbers remain unchanged during training).
from softras.
Oh I only checked grads of face_vertex part. I've not checked grads of texture parts.
from softras.
Vertex always have gradient. Did you check grads of silhouette parts in your experiment? @mks0601
BTW, I'm still confused on the texture difference between NMR and SoftRas... In my mind, they have same texture format. @mks0601 @ShichenLiu
from softras.
What I mean was silhouette part. It is fine.
from softras.
Hi @mehameha998 , NMR using texture format as [num_faces, texture_size, texture_size, texture_size, 3], basically they project the texture space into a 3D cube. In our implementation, we setup a UV coordinate for each face, and project the texture into [num_faces, texture_size^2, 3]. I will push a pdf with detailed explanation later for better understanding.
from softras.
To correct this, when using surface format, only some fixed texture parts have gradients (their index numbers remain unchanged during training).
Hi, I met the same problem, have you found a solution? Seems only some faces got gradients.
from softras.
I solve this by setting minimum and maximum depth value (maybe near and far?) based on my case.
from softras.
Related Issues (20)
- I got the error :No module soft_renderer.cuda.load_textures ,when I run the command :CUDA_VISIBLE_DEVICES=0 python examples/demo_render.py HOT 2
- functional/soft_rasterize.py bug: lagacy branch HOT 5
- Some questions about source.npy
- How to avoid the different light/dark areas in the rasterized mesh image?
- About parameters of get_ points_ from_ Angles function
- Index out of array boundary of a corner case
- how to make my own datasets?
- error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120 HOT 1
- Installation issue
- Why SoftRasterizer render a mesh mask to different colors (i.e., surfaces are white, edges are gray)?
- Explanation regarding camera parameters
- FAILED: load_textures_cuda_kernel.obj HOT 5
- How to Reconstruct Target Geometry with RGB images
- undefined symbol: cudaSetupArgument HOT 5
- Install Problem: FAILED: C:/.../SoftRas-master/build/temp.win-amd64-3.6/Release/soft_renderer/cuda/soft_rasterize_cuda_kernel.obj HOT 1
- Symmetry Problem
- g++ error: load_textures_cuda.o: No such file or directory HOT 2
- libtorch C++ API
- Limitations on the number of vertices
- How to use opencv style matrix instead of OpenGL style?
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 softras.