
    {-j                     n    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
Z
ded	eeef         fdZdS )z>Model config loading for inference model directory convention.    )Path)AnyDict   )	constants   )
YAMLReader	model_dirreturnc                 &    | t           j         dz  S )z=Return the config file path for an inference model directory.z.yml)r   MODEL_FILE_PREFIXr
   s    k/var/www/html/banglarbhumi/venv/lib/python3.11/site-packages/paddlex/inference/models/utils/model_config.pyget_model_config_pathr      s    )5;;;;;    c                 ^    t                                          t          |                     S )z4Load model config from an inference model directory.)r	   readr   r   s    r   load_model_configr      s#    <<29==>>>r   N)__doc__pathlibr   typingr   r    r   utils.ior	   r   strr    r   r   <module>r      s    E D                     " " " " " "<T <d < < < <
? ?$sCx. ? ? ? ? ? ?r   