Closed LiXinghui-666 closed 1 year ago
Hi, do you change the value of original_size_img and cropped_size_img according to your own data? (https://github.com/jiepengwang/NeuRIS/blob/7c085b2bd293e61ef7f8655fa1f13e733bbd5ba8/exp_preprocess.py#L53)
Yes, I'm sure to change the value of original_size_img and cropped_size_img according to my own data.The output results of ply, cropping images, and pose are correct, but there are errors in the depth, which puzzles me.
I'm not sure where is wrong. Does the width and height of cropped_size_img satisfy the ratio 4:3? A minor suggestion is that maybe you can track the change of depth map size when running the program and find where is wrong.
Hi, thank you for your excellent work! :)
I also met the same error while preprocessing my own data, and finally got rid of the error after making
original_size_img = (960, 720)
cropped_size_img = (960, 720)
However, still I'm wondering why only the preprocess works on this size.
I'm not sure where is wrong. Does the width and height of cropped_size_img satisfy the ratio 4:3? A minor suggestion is that maybe you can track the change of depth map size when running the program and find where is wrong.
my cropped_size_img is(1360,1020), satifing the ratir 4:3.
original_size_img = (1920, 1080)
cropped_size_img = (1360, 1020)
I fixed the issue by
After digging for a while, I found you can set the reso_level
to 0 so openMVS
won't scale down the image (reso_level=1
means scaling down the image by 2 in both dimensions, while in the training code reso_level=1
means keep the original resolution):
https://github.com/jiepengwang/NeuRIS/blob/74187e6dfb14636b0d55fda09fb4ab85a791fb2f/exp_preprocess.py#L55
Also, you need to remove the assert here:
https://github.com/jiepengwang/NeuRIS/blob/c07a3bd780fcb0b60f5e093d5a5ba4206f8a2fca/preprocess/sfm_mvs.py#L205
Thank you for your excellent work. However, during the preprocessing of my own data, a shape error occurs in
The shape of path_depth0 is 518400(540960), but the shape of size_image is (10801920),How can I fix this part of the error?