From 538ca47eca2cdf2e64bfbaed926e4101fb6f9f9a Mon Sep 17 00:00:00 2001 From: dongshuilong Date: Thu, 16 Dec 2021 10:14:46 +0000 Subject: [PATCH 1/2] fix levit384 inference size bug --- test_tipc/config/LeViT/LeViT_384_train_infer_python.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_tipc/config/LeViT/LeViT_384_train_infer_python.txt b/test_tipc/config/LeViT/LeViT_384_train_infer_python.txt index 47451d4f7..0ae0d40fb 100644 --- a/test_tipc/config/LeViT/LeViT_384_train_infer_python.txt +++ b/test_tipc/config/LeViT/LeViT_384_train_infer_python.txt @@ -6,7 +6,7 @@ gpu_list:0|0,1 -o Global.auto_cast:null -o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120 -o Global.output_dir:./output/ --o DataLoader.Train.sampler.batch_size:8 +-o DataLoader.Train.sampler.batch_size:2 -o Global.pretrained_model:null train_model_name:latest train_infer_img_dir:./dataset/ILSVRC2012/val @@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/L infer_model:../inference/ infer_export:True infer_quant:Fasle -inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384 +inference:python/predict_cls.py -c configs/inference_cls.yaml -o PreProcess.transform_ops.0.ResizeImage.resize_short=256 -o PreProcess.transform_ops.1.CropImage.size=224 -o Global.use_gpu:True|False -o Global.enable_mkldnn:True|False -o Global.cpu_num_threads:1|6 From cf57d54b779260e8ce4efa86dda7bc85722775cb Mon Sep 17 00:00:00 2001 From: dongshuilong Date: Mon, 20 Dec 2021 07:26:34 +0000 Subject: [PATCH 2/2] fix Rednet101 and Swin_large12_384 bs bug for tipc --- test_tipc/config/RedNet/RedNet101_train_infer_python.txt | 2 +- ...Transformer_large_patch4_window12_384_train_infer_python.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test_tipc/config/RedNet/RedNet101_train_infer_python.txt b/test_tipc/config/RedNet/RedNet101_train_infer_python.txt index b16633f41..6d7d3b9d8 100644 --- a/test_tipc/config/RedNet/RedNet101_train_infer_python.txt +++ b/test_tipc/config/RedNet/RedNet101_train_infer_python.txt @@ -6,7 +6,7 @@ gpu_list:0|0,1 -o Global.auto_cast:null -o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120 -o Global.output_dir:./output/ --o DataLoader.Train.sampler.batch_size:8 +-o DataLoader.Train.sampler.batch_size:2 -o Global.pretrained_model:null train_model_name:latest train_infer_img_dir:./dataset/ILSVRC2012/val diff --git a/test_tipc/config/SwinTransformer/SwinTransformer_large_patch4_window12_384_train_infer_python.txt b/test_tipc/config/SwinTransformer/SwinTransformer_large_patch4_window12_384_train_infer_python.txt index 6da5cedf6..f1a1873d9 100644 --- a/test_tipc/config/SwinTransformer/SwinTransformer_large_patch4_window12_384_train_infer_python.txt +++ b/test_tipc/config/SwinTransformer/SwinTransformer_large_patch4_window12_384_train_infer_python.txt @@ -6,7 +6,7 @@ gpu_list:0|0,1 -o Global.auto_cast:null -o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120 -o Global.output_dir:./output/ --o DataLoader.Train.sampler.batch_size:8 +-o DataLoader.Train.sampler.batch_size:2 -o Global.pretrained_model:null train_model_name:latest train_infer_img_dir:./dataset/ILSVRC2012/val