o
    i                     @   s0   d dl mZ d dlmZ defddZe ZdS )    )OrderedDict)Pathreturnc                  C   sv   t t jd } t | } g }|  D ]}| r.|jdkr.|j}t| }|	||f qt
|dd 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                 S   s   | d S )Nr    )xr   r   7/data/cameron/da3_repo/src/depth_anything_3/registry.py<lambda>-   s    z get_all_models.<locals>.<lambda>)key)r   __file__resolveparentiterdiris_filesuffixstemstrappendsortedr   )Zconfigs_dirZmodel_entriesitem
model_nameZfile_abs_pathZsorted_entriesr   r   r   get_all_models   s   	r   N)collectionsr   pathlibr   r   MODEL_REGISTRYr   r   r   r   <module>   s   
