o
    1Îj_  ã                   @   s,   d dl mZ ddlmZ G dd„ deƒZdS )é   )ÚBaseEvaluatoré   )ÚMODELSc                   @   s*   e Zd ZdZeZdd„ Zdefdd„ZdS )ÚTextDetEvaluatorzText Detection Model Evaluatorc                 C   s.   | j jr| j | j j¡ | j | jjd¡ dS )zupdate evaluation configZTextDetDatasetN)Úeval_configZlog_intervalZ
pdx_configZupdate_log_intervalZupdate_datasetZglobal_configZdataset_dir©Úself© r	   úi/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddlex/modules/text_detection/evaluator.pyÚupdate_config   s   zTextDetEvaluator.update_configÚreturnc                 C   s   | j j|  ¡ dœS )z‡get key-value arguments of model evaluation function

        Returns:
            dict: the arguments of evaluation function.
        )Úweight_pathZdevice)r   r   Z
get_devicer   r	   r	   r
   Úget_eval_kwargs    s   þz TextDetEvaluator.get_eval_kwargsN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úentitiesr   Údictr   r	   r	   r	   r
   r      s
    r   N)Úbaser   Z
model_listr   r   r	   r	   r	   r
   Ú<module>   s   