-
Notifications
You must be signed in to change notification settings - Fork 158
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
DTU camera Poses #5
Comments
Hi, you can refer to this script for processing the data. https://github.com/NVlabs/neuralangelo/blob/main/projects/neuralangelo/scripts/convert_tnt_to_json.py |
Thanks! |
I used the code you provided and made some modifications to reproduce the DTU colmap points, but there are discrepancies with the dataset you provided, could you help me find the problem?
|
I noticed that the size of the image is 15541162 instead of 16001200. Why does it need to resize the images? |
Hi, since the DTU's intrinsic is not in ideal pinhole format; That is say, the principle point is not the image center. So I crop the image to be pinhole before running the COLMAP program. Here is the code you can refer to # you should crop the image and rewrite the intrinsic
images = [cv2.imread(image_paths[idx]) for idx in range(n_images)]
new_images = []
for idx in range(n_images):
cx, cy = intrinsics[idx][0,2], intrinsics[idx][1,2]
image = images[idx]
H, W, _ = image.shape
W2 = min((W - cx), cx)
H2 = min((H - cy), cy)
crop_box = (
int(cx-W2), # left
int(cx+W2), # upper
int(cy-H2), # right
int(cy+H2) # lower
)
new_image = image[crop_box[2]:crop_box[3], crop_box[0]:crop_box[1]]
intrinsics[idx][0,2] = new_image.shape[1] / 2
intrinsics[idx][1,2] = new_image.shape[0] / 2 |
@hbb1 Hi, have you ever tested using the same way as IDR to load the original size DTU images for training (like gaussian surfels)? Will that affect the performance? Thanks. |
@leonwu0108 What do you mean the original size, the original 1600x1200 or the upscaled resolution? I don't think it will impact performance by using more pixels, although you may need adjusting some hyper-parameters accordingly. The real Important is the intrinsic, since both 3DGS and 2DGS only support ideal pinhole camera. |
Hi, I am using the dataset provided by Neus and performing COLMAP reconstruction with the real poses. When I change the image resolution and intrinsic parameters, how should I adjust the scale_mat? |
Thanks for the released code!
I notice that you generate SFM point cloud with COLMAP given GT camera poses (cameras.npz).
Could you share the scripts of this step as I want to test more DTU scenes?
Thanks a lot!
The text was updated successfully, but these errors were encountered: