Depth-Anything icon indicating copy to clipboard operation
Depth-Anything copied to clipboard

Bug Fix - Type error when evaluating metric depth on Kitti

Open loevlie opened this issue 1 year ago • 1 comments

This pull request addresses the type error encountered when evaluating the fine-tuned Depth-Anything model on the Kitti dataset , a similar issue with ZoeDepth was reported here - #2113.

The error had two proposed solutions:

  1. Downgrade the torch version.
  2. Manually adjust the height and width in the model code.

I opted for the second solution, modifying the height and width manually. This decision was made to avoid potential compatibility issues with future versions of xFormers, which may require a more recent version of torch. Downgrading torch, while a viable short-term fix, could lead to more significant maintenance challenges down the line.

loevlie avatar Jan 25 '24 21:01 loevlie

This also happens when running evaluate or depth_to_pointcloud more generally. Thanks for the quick fix!

NickLucche avatar Apr 05 '24 15:04 NickLucche