Open MoAbbasid opened 2 months ago
@MoAbbasid Hello, if you can only adjust the post-processing part without changing the model, what I have been trying is to adjust fx and fy in its internal parameter matrix.
Hi @oywenjun11 , I obtained these values by calibrating with opencv, using the chessboard pattern, do you suggest just randomly changing these values? and keep cx, cy, the same?
你好@oywenjun11,我通过使用 opencv 校准获得这些值,使用棋盘图案,你建议随机改变这些值吗?并保持 cx、cy 不变?
@MoAbbasid Hello, my suggestion is to try modifying fx and fy. It is not necessarily the result after you have calibrated opencv. Because this part of the post-processing is simply scaling the predicted depth map results.
@MoAbbasid Hello, I have also used OpenCV's chessboard calibration to calibrate the intrinsic parameters, but I found that its results fluctuate a lot (probably due to the strict quality requirements for the calibration images), making it difficult to calibrate accurately. It even performs worse than using default parameters.
Hello @oywenjun11 @sukasu403 , I tried adjusting the focal length fx, fy, but that doesnt work as the result is not consistent, meaning they are different from image to image,
in the same image where the distance is 4m, I got the desired result at f=500
but for the second picture where the gt is actually 2m, I got the desired result at f=250
so its not consistent in different pictures,
what else can I try to do to get some uniform metric values? could it be that the sky values are causing the depth result to be large?
As most training images have larger widths, so maybe can try to adjust the height/width.
@YvanYin, so I flipped the height and width,
in the 2m GT image I got 2m at intrinsic = [500, 500, 1512, 2016]
in the 4m GT image I got 4m at intrinsic = [750, 750, 1512, 2016]
varied results for other distances and images as well, Im using vit_large, any other suggestion? how big of a role does the sky values play?
@YvanYin, so I flipped the height and width,
in the 2m GT image I got 2m at intrinsic = [500, 500, 1512, 2016]
in the 4m GT image I got 4m at intrinsic = [750, 750, 1512, 2016]
varied results for other distances and images as well, Im using vit_large, any other suggestion? how big of a role does the sky values play?
Oh we normally do not transpose the height and width. For the sky values... we suggest just use the confidence map to filter them out.
For the inconsistency, what about center crop the first image and resize it to the original size? I think this inconsistency is largely caused by insufficient training data with large image size and small focal length.
Hi, I need to get distance to an object, I gathered a small dataset of outdoor images at a varied distances to test, and the model results are varied, My Questions are:
What is the best practice to improve the results?, I already calibrated and have the intrinsics, what else can I do? the model is clipped to be under a certain value to account for the sky correct?
My images are w=3024, h=4032, I provided the code I use to generate depth and visualization below
The red dot point is 4m from the camera, but I got (11.45) from the vit-small model and (20.764) from vit-large model, obviously way off. another test I ran at 2m produced (1.3) fro, vit_small and (1.5) for vit_large, which is still not ideal but workable.
Any info to get this close to the real world scale is appreciated