
    j                     6    d dl mZ d dlmZ defdZ e       Zy)    )OrderedDict)Pathreturnc                  ~   t        t              j                         j                  dz  } t        |       } g }| j	                         D ][  }|j                         s|j                  dk(  s$|j                  }t        |j                               }|j                  ||f       ] t        |d       }t        |      S )z
    Scans all YAML files in the configs directory and returns a sorted dictionary where:
    - Keys are model names (YAML filenames without the .yaml extension)
    - Values are absolute paths to the corresponding YAML files
    configsz.yamlc                     | d   S )Nr    )xs    w/home/vela/workspace/domain/tn-silver/web/tn-site/.runtime/depth-eval/depth-anything-3/src/depth_anything_3/registry.py<lambda>z get_all_models.<locals>.<lambda>-   s    1    )key)r   __file__resolveparentiterdiris_filesuffixstemstrappendsortedr   )configs_dirmodel_entriesitem
model_namefile_abs_pathsorted_entriess         r   get_all_modelsr      s     x.((*11I=K {#KM##%<<>dkkW4J/M  *m!<= & M~>N~&&r   N)collectionsr   pathlibr   r   MODEL_REGISTRYr	   r   r   <module>r#      s#    $ ' '>  !r   