From 6fad15edae195b2e86f76d97ba371ebd4804b526 Mon Sep 17 00:00:00 2001 From: tianyi1997 <93087391+tianyi1997@users.noreply.github.com> Date: Mon, 20 Feb 2023 16:30:22 +0800 Subject: [PATCH] Add tipc for MetaBIN --- ...50_cross_domain_train_amp_infer_python.txt | 54 +++++++++++++++++++ ...sNet50_cross_domain_train_infer_python.txt | 54 +++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 test_tipc/configs/MetaBIN/MetaBIN_ResNet50_cross_domain_train_amp_infer_python.txt create mode 100644 test_tipc/configs/MetaBIN/MetaBIN_ResNet50_cross_domain_train_infer_python.txt diff --git a/test_tipc/configs/MetaBIN/MetaBIN_ResNet50_cross_domain_train_amp_infer_python.txt b/test_tipc/configs/MetaBIN/MetaBIN_ResNet50_cross_domain_train_amp_infer_python.txt new file mode 100644 index 00000000..50ce251e --- /dev/null +++ b/test_tipc/configs/MetaBIN/MetaBIN_ResNet50_cross_domain_train_amp_infer_python.txt @@ -0,0 +1,54 @@ +===========================train_params=========================== +model_name:RecModel +python:python3.8 +gpu_list:0 +-o Global.device:gpu +-o Global.auto_cast:null +-o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=348 +-o Global.output_dir:./output/ +-o DataLoader.Train.sampler.batch_size:16 +-o Global.pretrained_model:null +train_model_name:latest +train_infer_img_dir:./dataset/market1501/Market-1501-v15.09.15/bounding_box_train +null:null +## +trainer:amp_train +amp_train:tools/train.py -c ppcls/configs/reid/MetaBIN_ResNet50_cross_domain.yaml -o Global.seed=1234 -o DataLoader.Train.loader.num_workers=0 -o DataLoader.Train.loader.use_shared_memory=False -o Global.eval_during_train=False -o Global.save_interval=2 -o DataLoader.Train.sampler.num_instances=2 -o DataLoader.Metalearning.Train.sampler.batch_size=16 -o DataLoader.Metalearning.Train.sampler.num_instances=2 +pact_train:null +fpgm_train:null +distill_train:null +null:null +null:null +## +===========================eval_params=========================== +eval:tools/eval.py -c ppcls/configs/reid/MetaBIN_ResNet50_cross_domain.yaml +null:null +## +===========================infer_params========================== +-o Global.save_inference_dir:./inference +-o Global.pretrained_model: +norm_export:tools/export_model.py -c ppcls/configs/reid/MetaBIN_ResNet50_cross_domain.yaml +quant_export:null +fpgm_export:null +distill_export:null +kl_quant:null +export2:null +pretrained_model_url:null +infer_model:../inference/ +infer_export:True +infer_quant:Fasle +inference:python/predict_rec.py -c ./configs/inference_rec.yaml +-o Global.use_gpu:True|False +-o Global.enable_mkldnn:True +-o Global.cpu_num_threads:1 +-o Global.batch_size:1 +-o Global.use_tensorrt:False +-o Global.use_fp16:False +-o Global.rec_inference_model_dir:../inference +-o Global.infer_imgs:../dataset/dukemtmc/DukeMTMC-reID/query/0005_c2_f0046985.jpg +-o Global.save_log_path:null +-o Global.benchmark:False +null:null +null:null +===========================infer_benchmark_params========================== +random_infer_input:[{float32,[3,256,128]}] \ No newline at end of file diff --git a/test_tipc/configs/MetaBIN/MetaBIN_ResNet50_cross_domain_train_infer_python.txt b/test_tipc/configs/MetaBIN/MetaBIN_ResNet50_cross_domain_train_infer_python.txt new file mode 100644 index 00000000..53bda05e --- /dev/null +++ b/test_tipc/configs/MetaBIN/MetaBIN_ResNet50_cross_domain_train_infer_python.txt @@ -0,0 +1,54 @@ +===========================train_params=========================== +model_name:RecModel +python:python3.8 +gpu_list:0 +-o Global.device:gpu +-o Global.auto_cast:null +-o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=348 +-o Global.output_dir:./output/ +-o DataLoader.Train.sampler.batch_size:16 +-o Global.pretrained_model:null +train_model_name:latest +train_infer_img_dir:./dataset/market1501/Market-1501-v15.09.15/bounding_box_train +null:null +## +trainer:norm_train +norm_train:tools/train.py -c ppcls/configs/reid/MetaBIN_ResNet50_cross_domain.yaml -o Global.seed=1234 -o DataLoader.Train.loader.num_workers=0 -o DataLoader.Train.loader.use_shared_memory=False -o Global.eval_during_train=False -o Global.save_interval=2 -o DataLoader.Train.sampler.num_instances=2 -o DataLoader.Metalearning.Train.sampler.batch_size=16 -o DataLoader.Metalearning.Train.sampler.num_instances=2 -o AMP=None +pact_train:null +fpgm_train:null +distill_train:null +null:null +null:null +## +===========================eval_params=========================== +eval:tools/eval.py -c ppcls/configs/reid/MetaBIN_ResNet50_cross_domain.yaml +null:null +## +===========================infer_params========================== +-o Global.save_inference_dir:./inference +-o Global.pretrained_model: +norm_export:tools/export_model.py -c ppcls/configs/reid/MetaBIN_ResNet50_cross_domain.yaml +quant_export:null +fpgm_export:null +distill_export:null +kl_quant:null +export2:null +pretrained_model_url:null +infer_model:../inference/ +infer_export:True +infer_quant:Fasle +inference:python/predict_rec.py -c ./configs/inference_rec.yaml +-o Global.use_gpu:True|False +-o Global.enable_mkldnn:True +-o Global.cpu_num_threads:1 +-o Global.batch_size:1 +-o Global.use_tensorrt:False +-o Global.use_fp16:False +-o Global.rec_inference_model_dir:../inference +-o Global.infer_imgs:../dataset/dukemtmc/DukeMTMC-reID/query/0005_c2_f0046985.jpg +-o Global.save_log_path:null +-o Global.benchmark:False +null:null +null:null +===========================infer_benchmark_params========================== +random_infer_input:[{float32,[3,256,128]}] \ No newline at end of file -- GitLab