o
    1 i                  
   @   s   d dl Z d dlZd dlmZ d dlmZ d dlmZ edkrve  Z	e	j
dddd	 e	 \ZZejr9ejd
d dZededddgidZejeejddddiejdddejedddddddeddZe Zede j dS dS )     N)tune)pbt_function)PB2__main__z--smoke-test
store_truezFinish quickly for testing)actionhelp   )Znum_cpus   Ztraining_iterationlrg-C6?g{Gz?)Z	time_attrperturbation_intervalZhyperparam_boundsZpbt_testF   T)Z	fail_fast)nameverbosestopZfailure_configZmean_accuracymax   )Z	schedulerZmetricmodeZnum_samplesZreuse_actors   )r   Zsome_other_factorZcheckpoint_interval)Z
run_configZtune_configZparam_spacez!Best hyperparameters found were: )argparseZrayr   Zray.tune.examples.pbt_functionr   Zray.tune.schedulers.pb2r   __name__ArgumentParserparseradd_argumentparse_known_argsargs_Z
smoke_testinitr   ZpbtZTunerZ	RunConfigZFailureConfigZ
TuneConfigZtunerfitresultsprintZget_best_resultconfig r"   r"   i/home/app/PaddleOCR-VL-test/.venv_paddleocr/lib/python3.10/site-packages/ray/tune/examples/pb2_example.py<module>   s\   	
