Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fit on a ScanNet scene? #2

Closed
BostonLobster opened this issue Jul 13, 2020 · 3 comments
Closed

How to fit on a ScanNet scene? #2

BostonLobster opened this issue Jul 13, 2020 · 3 comments
Labels
good first issue Good for newcomers

Comments

@BostonLobster
Copy link

Each ScanNet scene contains RGB-D images, so I can project 2D pixels to 3D point cloud and save them to a .ply file.
But how to modify path_example.yaml and train_example.yaml to fit the descriptors on this ply file?

Any guidelines or suggestions?

@seva100
Copy link
Collaborator

seva100 commented Jul 13, 2020

Most likely, you will only need to modify the path_example.yaml. The syntax is:

datasets:
    "your_scene_name":
        scene_path: your_scene/your_scene_config.yaml    # path to your scene config -- needs to be filled in separately
        target_path: your_scene/images_undistorted    # path to undistorted images of your scene
        target_name_func: "lambda i: f'{i}.png'"    # lambda which defines the file name format for ground truth picture #i in target_path

You'll also need to create your_scene/your_scene_config.yaml mentioned above. The structure is:

viewport_size: [2160, 3840]    # width, height of your target images
intrinsic_matrix: path/to/scene/intrinsic.txt
view_matrix: path/to/scene/view_matrices.txt
pointcloud: path/to/scene/point_cloud.ply

You can look at some examples by downloading the sample data provided with the repository.
Hope this helps.

@Larry-u
Copy link

Larry-u commented Jul 14, 2020

@seva100 Thanks for your reply!
I figure out how to achieve that now. But I have another question: in the readme, the metashape_build_cloud.py produces a point_cloud.obj, but in the sample data, the pointcloud file is pointcloud.ply, is there any script to convert between them?

@seva100
Copy link
Collaborator

seva100 commented Jul 14, 2020

@Larry-u actually metashape_build_cloud.py should produce a .ply file (see the line 83), so it should be working out of the box.

I understand it was confusing since it was said in README that the script produces on .obj file, so I've just fixed that in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants