DepthAnything / Depth-Anything-V2

Depth Anything V2. A More Capable Foundation Model for Monocular Depth Estimation
https://depth-anything-v2.github.io
Apache License 2.0
3.39k stars 277 forks source link

Refactor depth estimation script for clarity and maintainability #18

Open sanowl opened 3 months ago

sanowl commented 3 months ago

Description

This pull request refactors the Depth Anything V2 script to improve code readability, maintainability, and clarity. The main changes include:

  1. Code Structure: The code has been modularized by splitting it into smaller functions for better organization.
  2. Comments: Added descriptive comments throughout the code to explain key steps and logic.
  3. Logging and Printing: Simplified and enhanced logging for better debugging and monitoring.
  4. Function and Variable Names: Improved names for functions and variables to make the code more intuitive.
  5. Error Handling: Included error handling for unsupported dataset types.

Changes

Testing

Additional Notes