Giter Club home page Giter Club logo

Comments (3)

vincent-leroy avatar vincent-leroy commented on September 6, 2024 7

Hello @kuaiqushangzixiba
If you know the camera poses in advance, you can set them with the following:

def preset_pose(self, known_poses, pose_msk=None): # cam-to-world

The same can be done with focals and principal points
def preset_focal(self, known_focals, msk=None):

def preset_principal_point(self, known_pp, msk=None):

Note that if you only care about having all reconstructions living in the same reference frame, you can get the output camera poses and parameters after processing the first sequence and set them manually for the rest of the reconstructions. Note that setting inaccurate camera poses might hinder the quality of the output in some cases.

Best

from dust3r.

kuaiqushangzixiba avatar kuaiqushangzixiba commented on September 6, 2024

dust3r/demo.py

Line 91 in 517a430

def get_3D_model_from_scene(outdir, scene, min_conf_thr=3, as_pointcloud=False, mask_sky=False,

return _convert_scene_output_to_glb(outdir, rgbimg, pts3d, msk, focals, cams2world, as_pointcloud=as_pointcloud,
transparent_cams=transparent_cams, cam_size=cam_size)

Thanks a lot!
When should I set it up? When you initialize global_aligner, or after get_3D_model_from_scene...

from dust3r.

kuaiqushangzixiba avatar kuaiqushangzixiba commented on September 6, 2024

And when I set preset_pose(), I got the following error, I found that the declaration of this method was not defined in the code

AttributeError: 'PointCloudOptimizer' object has no attribute '_get_msk_indices'

from dust3r.

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.