GithubHelp home page GithubHelp logo

Comments (8)

hbb1 avatar hbb1 commented on July 17, 2024

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.

hbb1 avatar hbb1 commented on July 17, 2024

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.

CanCanZeng avatar CanCanZeng commented on July 17, 2024

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.

hbb1 avatar hbb1 commented on July 17, 2024

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.

hbb1 avatar hbb1 commented on July 17, 2024

You can also check this version that also use intrins hbb1/diff-surfel-rasterization@661d224

from 2d-gaussian-splatting.

CanCanZeng avatar CanCanZeng commented on July 17, 2024

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.

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.

CanCanZeng avatar CanCanZeng commented on July 17, 2024

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.

hbb1 avatar hbb1 commented on July 17, 2024

Ok! A very unnoticeable bug. That makes sense.

from 2d-gaussian-splatting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.