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

Prepare customized dataset #8

Closed
lzhangbj opened this issue Nov 6, 2020 · 8 comments
Closed

Prepare customized dataset #8

lzhangbj opened this issue Nov 6, 2020 · 8 comments

Comments

@lzhangbj
Copy link

lzhangbj commented Nov 6, 2020

Hi Riegler, thank you for this great work in view synthesis. It is really appreciated that you have provided you preprocessed dataset and training/eval code. May I know how to preprocess our customized dataset (a few images) so that we can apply this method directly on it?

@griegler
Copy link
Contributor

griegler commented Nov 6, 2020

You can run the full colmap pipeline on your images to get the rectified images, camera parameters and poses, and the surface mesh. After that, you have to render the depth maps. I used pyrender, but anything works. With that you can use ext.preprocess.count_nbs to compute the overlap between the images. That's it in a nutshell.

@lzhangbj
Copy link
Author

lzhangbj commented Nov 6, 2020

Great. Thanks for your quick response

@lzhangbj lzhangbj closed this as completed Nov 6, 2020
@phongnhhn92
Copy link

@griegler In your uploaded dataset, each scene has a delaunay_photometric.ply file. Is that the mesh that you have used to render the depth map of any poses using pyrender ?

@griegler
Copy link
Contributor

griegler commented Dec 1, 2020

@phongnhhn92 yes.

@phongnhhn92
Copy link

phongnhhn92 commented Dec 1, 2020

@phongnhhn92 yes.

Great! It would be helpful if you can share the script you have used to render the depth map. I am curious about which camera parameter you have chosen to render it.

@visonpon
Copy link

visonpon commented Dec 8, 2020

@phongnhhn92, in the preprocess.cpp, mat3_t K=(src_Ks_np.data() + vidx * 3 * 3, 3, 3), src_Ks_np's size is (n_views,3,3), but K'size is (3,3), I wonder whether this operation has some problem?

@griegler
Copy link
Contributor

griegler commented Dec 8, 2020

@phongnhhn92 Most likely I can not upload it to this repo. But we are working on releasing the code for Stable View Synthesis and hopefully this will include the necessary scripts.

@visonpon src_Ks_np has size (n_views,3,3) because it projects into all source views (n_views).

@jly0810
Copy link

jly0810 commented Dec 3, 2023

You can run the full colmap pipeline on your images to get the rectified images, camera parameters and poses, and the surface mesh. After that, you have to render the depth maps. I used pyrender, but anything works. With that you can use ext.preprocess.count_nbs to compute the overlap between the images. That's it in a nutshell.

Hello, I am very interested in your work. May I now open up the code for this part? I want to use some of my own photos to obtain a dataset, but I have encountered some difficulties. I hope you can provide relevant codes and instructions. Thank you!

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

5 participants