
    |-j                     F    d dl mZ ddlmZ ddlmZ  G d de          ZdS )	   UnsupportedAPIError   )BaseTrainer   )MODELSc                   .    e Zd ZdZeZd Zd ZdefdZ	dS )OVDetTrainerz'Open Vocabulary Detection Model Trainerc                      t          d          )Nz>open vocabulary detection models do not support train for now.r   )selfconfigs     q/var/www/html/banglarbhumi/venv/lib/python3.11/site-packages/paddlex/modules/open_vocabulary_detection/trainer.py__init__zOVDetTrainer.__init__   s    !L
 
 	
    c                     dS )zupdate training configN )r   s    r   update_configzOVDetTrainer.update_config   s      r   returnc                 f    |                                  | j                            dd          d}|S )zget key-value arguments of model training function

        Returns:
            dict: the arguments of training function.
        ampOFF)devicer   )
get_devicetrain_configget)r   
train_argss     r   get_train_kwargszOVDetTrainer.get_train_kwargs"   s;     oo''$((66
 

 r   N)
__name__
__module____qualname____doc__r   entitiesr   r   dictr   r   r   r   r
   r
      sX        11H
 
 
% % %
$ 
 
 
 
 
 
r   r
   N)utils.errorsr   baser   
model_listr   r
   r   r   r   <module>r'      sq    0 / / / / /                ;     r   