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 render the depth map from SA3D? #85

Open
Lizhinwafu opened this issue Sep 10, 2024 · 14 comments
Open

How to render the depth map from SA3D? #85

Lizhinwafu opened this issue Sep 10, 2024 · 14 comments

Comments

@Lizhinwafu
Copy link

Lizhinwafu commented Sep 10, 2024

How to render the depth map from SA3D?

@Lizhinwafu
Copy link
Author

How can I save the rendered depth map instead of the pseudo-color video?

@Jumpat
Copy link
Owner

Jumpat commented Sep 14, 2024

You may need to change the code in lib/render_utils.py. Here, we convert the depth to colormap. You can save the original depth directly rather than converting it.

@Lizhinwafu
Copy link
Author

Thanks.

  1. Are the RGB and depth maps exported by SA3D aligned?
  2. Can 3DGS export depth maps? If it can, why can't we get point clouds directly?

@Jumpat
Copy link
Owner

Jumpat commented Sep 14, 2024

How to understand 'aligned'? Theoretically they should be. However, the depth is estimated by NeRF, which may not align with the actual situation. But it should align with the rendered RGB.

3DGS can export depth map. However, 3DGS is represented by a set of 3D Gaussians, which can be regarded as a kind of point cloud. Thus, we can directly export these points as the point cloud rather than use the depth map to estimate one.

@Lizhinwafu
Copy link
Author

Aligned: Each pixel in RGB corresponds one-to-one to each pixel in the depth map.
If they are aligned, I can detect the object in RGB and combine it with the depth to get a 3D model.

@Lizhinwafu
Copy link
Author

Another question, I want to customize the view of image rendering, which code should I modify? I only need to define four angles.

@Jumpat
Copy link
Owner

Jumpat commented Sep 15, 2024

Aligned: Each pixel in RGB corresponds one-to-one to each pixel in the depth map. If they are aligned, I can detect the object in RGB and combine it with the depth to get a 3D model.

Yes, they are.

Another question, I want to customize the view of image rendering, which code should I modify? I only need to define four angles.

To define the rendering view manually you need to modify the camera poses, which is not an easy task. You can find the use of the camera matrices here.

@Lizhinwafu
Copy link
Author

image
When my data set is collected at 360 degrees, the above error occurs. When the data is collected at 180 degrees (only the front of the target is photographed), there is no error. What is the reason?

@Lizhinwafu Lizhinwafu changed the title How to render the depth map from SA3D with the 3DGS version? How to render the depth map from SA3D? Sep 18, 2024
@Lizhinwafu
Copy link
Author

The NeRF you use is TensoRF, how can I change it to other models?

@Lizhinwafu
Copy link
Author

I found that after running run.py, there are 120 rendered images. Where are these camera poses saved (rotation and translation matrices)?

@Jumpat
Copy link
Owner

Jumpat commented Sep 22, 2024

The NeRF you use is TensoRF, how can I change it to other models?

In this codebase it is hard to change it, but I have integrated it with 3D-GS. Currently the SA3D-GS branch has some bugs, you can refer to this repo for a fixed version.

@Jumpat
Copy link
Owner

Jumpat commented Sep 22, 2024

I found that after running run.py, there are 120 rendered images. Where are these camera poses saved (rotation and translation matrices)?

We did not save this trace. But you can refer to here for its generation code.

@Lizhinwafu
Copy link
Author

I saved the camera pose of the 120 views rendered, and I found that this pose is not in the world coordinate system, but in the respective camera coordinate system.

@Lizhinwafu
Copy link
Author

The NeRF you use is TensoRF, how can I change it to other models?

In this codebase it is hard to change it, but I have integrated it with 3D-GS. Currently the SA3D-GS branch has some bugs, you can refer to this repo for a fixed version.

What is the difference between SA3D-gs and SAGA?

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

2 participants