mirror of
				https://github.com/PaddlePaddle/PaddleOCR.git
				synced 2025-10-26 15:25:04 +00:00 
			
		
		
		
	add det_mv3_db_v2.0 det_r50_db_v2.0 ch_ppocr_server_v2.0
This commit is contained in:
		
							parent
							
								
									b9964c83f8
								
							
						
					
					
						commit
						cb7e03738b
					
				| @ -0,0 +1,19 @@ | ||||
| ===========================ch_ppocr_mobile_v2.0=========================== | ||||
| model_name:ch_ppocr_server_v2.0 | ||||
| python:python3.7 | ||||
| infer_model:./inference/ch_ppocr_server_v2.0_det_infer/ | ||||
| infer_export:null | ||||
| infer_quant:True | ||||
| inference:tools/infer/predict_system.py | ||||
| --use_gpu:False | ||||
| --enable_mkldnn:False | ||||
| --cpu_threads:1|6 | ||||
| --rec_batch_num:1 | ||||
| --use_tensorrt:False | ||||
| --precision:int8 | ||||
| --det_model_dir: | ||||
| --image_dir:./inference/ch_det_data_50/all-sum-510/ | ||||
| --rec_model_dir:./inference/ch_ppocr_server_v2.0_rec_infer/ | ||||
| --benchmark:True | ||||
| null:null | ||||
| null:null | ||||
							
								
								
									
										51
									
								
								test_tipc/configs/det_mv3_db_v2.0/train_infer_python.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								test_tipc/configs/det_mv3_db_v2.0/train_infer_python.txt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,51 @@ | ||||
| ===========================train_params=========================== | ||||
| model_name:det_mv3_db_v2.0 | ||||
| python:python3.7 | ||||
| gpu_list:0|0,1 | ||||
| Global.use_gpu:True|True | ||||
| Global.auto_cast:null | ||||
| Global.epoch_num:lite_train_lite_infer=1|whole_train_whole_infer=300 | ||||
| Global.save_model_dir:./output/ | ||||
| Train.loader.batch_size_per_card:lite_train_lite_infer=2|whole_train_whole_infer=4 | ||||
| Global.pretrained_model:null | ||||
| train_model_name:latest | ||||
| train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/ | ||||
| null:null | ||||
| ## | ||||
| trainer:norm_train | ||||
| norm_train:tools/train.py -c configs/det/det_mv3_db.yml -o Global.pretrained_model=./pretrain_models/MobileNetV3_large_x0_5_pretrained | ||||
| pact_train:null | ||||
| fpgm_train:null | ||||
| distill_train:null | ||||
| null:null | ||||
| null:null | ||||
| ## | ||||
| ===========================eval_params===========================  | ||||
| eval:null | ||||
| null:null | ||||
| ## | ||||
| ===========================infer_params=========================== | ||||
| Global.save_inference_dir:./output/ | ||||
| Global.pretrained_model: | ||||
| norm_export:tools/export_model.py -c configs/det/det_mv3_db.yml -o  | ||||
| quant_export:null | ||||
| fpgm_export:null | ||||
| distill_export:null | ||||
| export1:null | ||||
| export2:null | ||||
| inference_dir:null | ||||
| train_model:./inference/det_mv3_db_v2.0_train/best_accuracy | ||||
| infer_export:tools/export_model.py -c configs/det/det_mv3_db.yml -o | ||||
| infer_quant:False | ||||
| inference:tools/infer/predict_det.py | ||||
| --use_gpu:True|False | ||||
| --enable_mkldnn:True|False | ||||
| --cpu_threads:1|6 | ||||
| --rec_batch_num:1 | ||||
| --use_tensorrt:False|True | ||||
| --precision:fp32|fp16|int8 | ||||
| --det_model_dir: | ||||
| --image_dir:./inference/ch_det_data_50/all-sum-510/ | ||||
| null:null | ||||
| --benchmark:True | ||||
| null:null | ||||
							
								
								
									
										51
									
								
								test_tipc/configs/det_r50_db_v2.0/train_infer_python.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								test_tipc/configs/det_r50_db_v2.0/train_infer_python.txt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,51 @@ | ||||
| ===========================train_params=========================== | ||||
| model_name:det_r50_db_v2.0 | ||||
| python:python3.7 | ||||
| gpu_list:0|0,1 | ||||
| Global.use_gpu:True|True | ||||
| Global.auto_cast:null | ||||
| Global.epoch_num:lite_train_lite_infer=2|whole_train_whole_infer=300 | ||||
| Global.save_model_dir:./output/ | ||||
| Train.loader.batch_size_per_card:lite_train_lite_infer=2|whole_train_lite_infer=4 | ||||
| Global.pretrained_model:null | ||||
| train_model_name:latest | ||||
| train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/ | ||||
| null:null | ||||
| ## | ||||
| trainer:norm_train | ||||
| norm_train:tools/train.py -c configs/det/det_r50_vd_db.yml -o  | ||||
| quant_export:null | ||||
| fpgm_export:null | ||||
| distill_train:null | ||||
| null:null | ||||
| null:null | ||||
| ## | ||||
| ===========================eval_params===========================  | ||||
| eval:tools/eval.py -c configs/det/det_r50_vd_db.yml -o | ||||
| null:null | ||||
| ## | ||||
| ===========================infer_params=========================== | ||||
| Global.save_inference_dir:./output/ | ||||
| Global.pretrained_model: | ||||
| norm_export:tools/export_model.py -c configs/det/det_r50_vd_db.yml -o  | ||||
| quant_export:null  | ||||
| fpgm_export:null | ||||
| distill_export:null | ||||
| export1:null | ||||
| export2:null | ||||
| ## | ||||
| train_model:./inference/ch_ppocr_server_v2.0_det_train/best_accuracy | ||||
| infer_export:tools/export_model.py -c configs/det/det_r50_vd_db.yml -o | ||||
| infer_quant:False | ||||
| inference:tools/infer/predict_det.py | ||||
| --use_gpu:True|False | ||||
| --enable_mkldnn:True|False | ||||
| --cpu_threads:1|6 | ||||
| --rec_batch_num:1 | ||||
| --use_tensorrt:False|True | ||||
| --precision:fp32|fp16|int8 | ||||
| --det_model_dir: | ||||
| --image_dir:./inference/ch_det_data_50/all-sum-510/ | ||||
| --save_log_path:null | ||||
| --benchmark:True | ||||
| null:null | ||||
| @ -52,6 +52,13 @@ if [ ${MODE} = "lite_train_lite_infer" ];then | ||||
|         wget -nc -P ./train_data/ wget -nc -P ./train_data/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/total_text_lite.tar --no-check-certificate | ||||
|         cd ./train_data && tar xf total_text_lite.tar && ln -s total_text && cd ../ | ||||
|     fi | ||||
|     if [ ${model_name} == "det_mv3_db_v2.0" ]; then | ||||
|         wget -nc -P https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_mv3_db_v2.0_train.tar  --no-check-certificate | ||||
|         cd ./inference/ && tar det_mv3_db_v2.0_train.tar && cd ../ | ||||
|     fi | ||||
|     if [ ${model_name} == "det_r50_db_v2.0" ]; then | ||||
|         wget -nc -P ./pretrain_models/ https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/ResNet50_vd_ssld_pretrained.pdparams --no-check-certificate | ||||
|     fi | ||||
| 
 | ||||
| elif [ ${MODE} = "whole_train_whole_infer" ];then | ||||
|     wget -nc -P  ./pretrain_models/ https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/MobileNetV3_large_x0_5_pretrained.pdparams --no-check-certificate | ||||
| @ -101,12 +108,12 @@ elif [ ${MODE} = "whole_infer" ];then | ||||
|         wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_det_train.tar --no-check-certificate | ||||
|         wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar  --no-check-certificate | ||||
|         cd ./inference && tar xf ch_ppocr_server_v2.0_det_train.tar && tar xf ch_det_data_50.tar && cd ../ | ||||
|     elif  [ ${model_name} = "ocr_system_mobile" ]; then | ||||
|     elif  [ ${model_name} = "ch_ppocr_mobile_v2.0" ]; then | ||||
|         wget -nc  -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_infer.tar --no-check-certificate | ||||
|         wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar --no-check-certificate | ||||
|         wget -nc  -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_rec_infer.tar --no-check-certificate | ||||
|         cd ./inference && tar xf ch_ppocr_mobile_v2.0_det_infer.tar && tar xf ch_ppocr_mobile_v2.0_rec_infer.tar && tar xf ch_det_data_50.tar && cd ../ | ||||
|     elif  [ ${model_name} = "ocr_system_server" ]; then | ||||
|     elif  [ ${model_name} = "ch_ppocr_server_v2.0" ]; then | ||||
|         wget -nc  -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_det_infer.tar --no-check-certificate | ||||
|         wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar --no-check-certificate | ||||
|         wget -nc  -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_rec_infer.tar --no-check-certificate | ||||
| @ -124,13 +131,13 @@ elif [ ${MODE} = "whole_infer" ];then | ||||
|         wget -nc  -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_rec_infer.tar --no-check-certificate | ||||
|         cd ./inference && tar xf ${eval_model_name}.tar && tar xf rec_inference.tar && cd ../ | ||||
|     fi  | ||||
|     elif [ ${model_name} = "ch_PPOCRv2_det" ]; then | ||||
|     if [ ${model_name} = "ch_PPOCRv2_det" ]; then | ||||
|         eval_model_name="ch_PP-OCRv2_det_infer" | ||||
|         wget -nc -P ./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar --no-check-certificate | ||||
|         wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_det_infer.tar --no-check-certificate | ||||
|         cd ./inference && tar xf ${eval_model_name}.tar && tar xf ch_det_data_50.tar && cd ../ | ||||
|     fi | ||||
|     elif [ ${model_name} = "ch_PPOCRv2_det" ]; then | ||||
|     if [ ${model_name} = "ch_PPOCRv2_det" ]; then | ||||
|         wget -nc -P ./inference/  https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar --no-check-certificate | ||||
|         wget -nc -P ./inference/  https://paddleocr.bj.bcebos.com/dygraph_v2.0/pgnet/e2e_server_pgnetA_infer.tar --no-check-certificate | ||||
|          cd ./inference && tar xf e2e_server_pgnetA_infer.tar && tar xf ch_det_data_50.tar && cd ../  | ||||
| @ -141,7 +148,15 @@ elif [ ${MODE} = "whole_infer" ];then | ||||
|     fi | ||||
|     if [ ${model_name} == "det_r50_vd_sast_icdar15_v2.0" ]; then | ||||
|         wget -nc -P  ./inference/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_sast_icdar15_v2.0_train.tar --no-check-certificate | ||||
|         cd ./inference/ && tar det_r50_vd_sast_icdar15_v2.0_train.tar && cd ../ | ||||
|         cd ./inference/ && tar xf det_r50_vd_sast_icdar15_v2.0_train.tar && cd ../ | ||||
|     fi | ||||
|     if [ ${model_name} == "det_mv3_db_v2.0" ]; then | ||||
|         wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_mv3_db_v2.0_train.tar  --no-check-certificate | ||||
|         cd ./inference/ && tar xf det_mv3_db_v2.0_train.tar && cd ../ | ||||
|     fi | ||||
|     if [ ${model_name} == "det_r50_db_v2.0" ]; then | ||||
|         wget -nc -P ./inference/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_db_v2.0_train.tar  --no-check-certificate | ||||
|         cd ./inference/ && tar xf det_r50_vd_db_v2.0_train.tar && cd ../ | ||||
|     fi | ||||
| 
 | ||||
| if [ ${MODE} = "klquant_whole_infer" ]; then | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 LDOUBLEV
						LDOUBLEV