o
    0j                     @   sh   d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	 ded	efd
dZ
ded	eeef fddZdS )z>Model config loading for inference model directory convention.    )Path)AnyDict   )	constants   )
YAMLReader	model_dirreturnc                 C   s   | t j d S )z=Return the config file path for an inference model directory.z.yml)r   ZMODEL_FILE_PREFIXr	    r   l/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddlex/inference/models/utils/model_config.pyget_model_config_path      r   c                 C   s   t  t| S )z4Load model config from an inference model directory.)r   readr   r   r   r   r   load_model_config   r   r   N)__doc__pathlibr   typingr   r    r   Zutils.ior   r   strr   r   r   r   r   <module>   s   