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

I wonder how to make the depth file. #81

Open
SEJUNHONG opened this issue Dec 22, 2022 · 3 comments
Open

I wonder how to make the depth file. #81

SEJUNHONG opened this issue Dec 22, 2022 · 3 comments

Comments

@SEJUNHONG
Copy link

Hi~
I'm going to apply it to the new data instead of the dataset that provided your great work, dsnerf.
So I'd appreciate it if you could tell me how to generate the 'train_depths.npy' file and how to make the information (depth, coord, error).
image

@dunbar12138
Copy link
Owner

Thanks for your interest!

Regarding running on your own data, you don't have to generate those files exactly. Instead, you can directly use the function here to load the depths after running COLMAP.

Hope it helps!

@SEJUNHONG
Copy link
Author

I have one more question about train_depths.npy file.
In one view in the file, there are 'depth', 'cord', and 'error', of which 'cord' and 'error' seem to be generated from the load_colmap_depth function as you mentioned above.
I printed out the array length of each element in 2 views, the first one was 1310 and the second one was 1539.
The size of the image is 4032x3024, and I wonder how the numbers like 1310 and 1539 above came out.
Additionally, how do I create an colmap_depth.npy file using the depth image?

@dunbar12138
Copy link
Owner

We don’t have depths for every pixel of the whole image while there are only ~1000 keypoints respectively after running colmap and post-processing. If you have depths for the whole image, you can create the train_depths.npy by indexing every possible pixel, which might lead to inefficient data loading. Otherwise, you need to re-write the data loading part for better efficiency.

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