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 )ÚTableRecEvaluatorz!Table Recognition Model Evaluatorc                 C   s.   | j jr| j | j j¡ | j | jjd¡ dS )zupdate evaluation configZPubTabTableRecDatasetN)Úeval_configZlog_intervalZ
pdx_configZupdate_log_intervalZupdate_datasetZglobal_configZdataset_dir©Úself© r	   úl/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddlex/modules/table_recognition/evaluator.pyÚupdate_config   s
   ÿzTableRecEvaluator.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!TableRecEvaluator.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   