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

the size of reconstructing mesh models #5

Open
qiuyuenheng opened this issue Feb 22, 2024 · 0 comments
Open

the size of reconstructing mesh models #5

qiuyuenheng opened this issue Feb 22, 2024 · 0 comments

Comments

@qiuyuenheng
Copy link

May I ask, how can I control the volume size of the reconstructed model when using this code for mesh reconstruction? I tried using the method of loading camera parameters in the 'neus' code to control the size of the generated mesh by adjusting the size of the' scale_mat ', but the generated mesh was always smaller than the ground-truth. Do you have any suggestions?thanks a lot!

            scale_mats = [camera_dict['scale_mat_%d' % idx].astype(np.float32) for idx in range(self.n_images)]
            world_mats = [camera_dict['world_mat_%d' % idx].astype(np.float32) for idx in range(self.n_images)]
            for scale_mat, world_mat in zip(scale_mats, world_mats):
                # scale_mat[:3, :4] *= 1.2
                P = world_mat @ scale_mat
                P = P[:3, :4]
                intrinsics, pose = load_K_Rt_from_P(None, P)
                self.intrinsics_all.append(torch.from_numpy(intrinsics).float())
                self.pose_all.append(torch.from_numpy(pose).float())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant