Comments (8)
Hi, supporting a non-ideal-pinhole model is interesting. I will review your implementation and come back to you then.
By the way, many folks and I have made some progress toward this goal. From my understanding, we should be able to support this now, without modifying the cuda code but simply adapting a new projection matrix with shift given works have been done in b8c9128 and 21a32f1. You can also have a try.
from 2d-gaussian-splatting.
Also, ensure that your projection matrix is consistent with the original implementation when using the ideal pinhole model, which your model should be compatible with.
from 2d-gaussian-splatting.
Hi @hbb1 , I just tried this commit b8c9128 today, but I found that the recovered intrinsics here is not consistent with the original parameters given in the colmap. You can take a break point here to check if the values of the intrins
are completely consistent with the values given in the colmap file.
By the way, I don't intend to convince you to add my modification to your source code, because my modification will make the interface inconsistent with the original 3DGS. But the way of calculating the projection using the intrinsic matrix (K
) is more in line with the way of thinking of people who do computer vision, so I changed it to the form I am more accustomed to..
from 2d-gaussian-splatting.
The intrins can be recover from the projection matrix by doing so
ndc2pix = torch.tensor([
[W / 2, 0, 0, (W) / 2],
[0, H / 2, 0, (H) / 2],
[0, 0, 0, 1]]).float().cuda().T
intrins = (view.projection_matrix @ ndc2pix)[:3,:3].T
I mean you should make sure you modification should work equally for an ideal pinhole model.
from 2d-gaussian-splatting.
You can also check this version that also use intrins hbb1/diff-surfel-rasterization@661d224
from 2d-gaussian-splatting.
The intrins can be recover from the projection matrix by doing so
ndc2pix = torch.tensor([ [W / 2, 0, 0, (W) / 2], [0, H / 2, 0, (H) / 2], [0, 0, 0, 1]]).float().cuda().T intrins = (view.projection_matrix @ ndc2pix)[:3,:3].TI mean you should make sure you modification should work equally for an ideal pinhole model.
Of course, both ideal and non-ideal pinhole camera models are supported.
You can also check this version that also use intrins hbb1/diff-surfel-rasterization@661d224
Thank you for the reminder. I am currently reviewing this part of the code.
from 2d-gaussian-splatting.
I found the bug, a very inconspicuous one. Here https://github.com/CanCanZeng/diff-surfel-rasterization/blob/a463669255a6624537afeb1db1491c9ff64c21a3/cuda_rasterizer/backward.cu#L503, I should not use a local variable P
, but the P
declared outside. The code prompt of vscode is too weak. The variable is used without assigning a value. If it is under other IDE, there will be a warning.
from 2d-gaussian-splatting.
Ok! A very unnoticeable bug. That makes sense.
from 2d-gaussian-splatting.
Related Issues (20)
- Incomplete Mesh HOT 5
- 2D GS viewer HOT 9
- Conversion to 3dgs HOT 2
- Extracted Mesh not consistent with point cloud HOT 3
- CUDA out of memory HOT 6
- AttributeError: 'MiniCam' object has no attribute 'projection_matrix' HOT 1
- Spurious blobs HOT 4
- lambda_dist Is the impact significant?
- Preprocessing Custom Dataset HOT 1
- How can I render RGB images results HOT 1
- Indoor environment lambda_dist=100 cannot converge
- How is the mesh rendered? HOT 2
- 2D viewer does not support Chinese paths
- SHA256 checksum does not match expected value HOT 3
- mesh extraction from single viewpoint HOT 2
- about rot_0, rot_1, rot_2, and rot_3: HOT 2
- Alignment with Truck GT in TnT supplied dataset HOT 19
- render.py 生成的是点云文件,目前有方法可以转成obj或者fbx吗 HOT 1
- If disable DUAL_VISIBLE 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 2d-gaussian-splatting.