
    9i                     >    S SK Jr  SSKJr  SSKJr   " S S\5      rg)	   UnsupportedAPIError   )BaseTrainer   )MODELSc                   6    \ rS rSrSr\rS rS rS\	4S jr
Srg)	OVSegTrainer   z*Open Vocabulary Segmentation Model Trainerc                     [        S5      e)NzAopen vocabulary segmentation models do not support train for now.r   )selfconfigs     t/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/paddlex/modules/open_vocabulary_segmentation/trainer.py__init__OVSegTrainer.__init__   s    !O
 	
    c                     g)zupdate training configN )r   s    r   update_configOVSegTrainer.update_config   s    r   returnc                 `    U R                  5       U R                  R                  SS5      S.nU$ )zkget 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_kwargsOVSegTrainer.get_train_kwargs"   s3     oo'$$((6

 r   r   N)__name__
__module____qualname____firstlineno____doc__r   entitiesr   r   dictr    __static_attributes__r   r   r   r
   r
      s     4H
%
$ 
r   r
   N)utils.errorsr   baser   
model_listr   r
   r   r   r   <module>r-      s    0  ; r   