Skip to content

Commit b63c918

Browse files
authored
Cinn conver case 02 (#3046)
* fix cin converge case * fix cin converge case * fix cin converge case * fix cin converge case * fix cin converge case * fix pdx cinn case, test=model
1 parent e2c4fa8 commit b63c918

16 files changed

+35
-32
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python main.py -c paddlex/configs/modules/image_classification/CLIP_vit_base_patch16_224.yaml -o Global.mode=train -o Train.num_classes=1000 -o Train.epochs_iters=50 -o Train.batch_size=64 -o Train.learning_rate=0.00015 -o Train.pretrain_weight_path=None -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.dataset_dir=../ILSVRC2012/ -o Global.output='./output/image_classification/CLIP_vit_base_patch16_224_CINN' -o Train.dy2st=True
1+
python main.py -c paddlex/configs/modules/image_classification/CLIP_vit_base_patch16_224.yaml -o Global.mode=train -o Train.num_classes=1000 -o Train.epochs_iters=50 -o Train.batch_size=64 -o Train.learning_rate=0.00015 -o Train.pretrain_weight_path=https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/foundation_models/CLIP_vit_base_patch16_224.pdparams -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.dataset_dir=../ILSVRC2012/ -o Global.output='./output/image_classification/CLIP_vit_base_patch16_224_CINN' -o Train.dy2st=True
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python main.py -c paddlex/configs/modules/image_classification/CLIP_vit_base_patch16_224.yaml -o Global.mode=train -o Train.num_classes=1000 -o Train.epochs_iters=50 -o Train.batch_size=64 -o Train.learning_rate=0.00015 -o Train.pretrain_weight_path=None -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.dataset_dir=../ILSVRC2012/ -o Global.output='./output/image_classification/CLIP_vit_base_patch16_224_dy'
1+
python main.py -c paddlex/configs/modules/image_classification/CLIP_vit_base_patch16_224.yaml -o Global.mode=train -o Train.num_classes=1000 -o Train.epochs_iters=50 -o Train.batch_size=64 -o Train.learning_rate=0.00015 -o Train.pretrain_weight_path=https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/foundation_models/CLIP_vit_base_patch16_224.pdparams -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.dataset_dir=../ILSVRC2012/ -o Global.output='./output/image_classification/CLIP_vit_base_patch16_224_dy'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python main.py -c paddlex/configs/modules/object_detection/Co-Deformable-DETR-R50.yaml -o Global.mode=train -o Global.dataset_dir=../coco -o Train.num_classes=80 -o Train.epochs_iters=12 -o Train.batch_size=2 -o Train.learning_rate=0.0002 -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.output='./output/object_detection/Co-Deformable-DETR-R50_CINN' -o Train.dy2st=True
1+
python main.py -c paddlex/configs/modules/object_detection/Co-Deformable-DETR-R50.yaml -o Global.mode=train -o Global.dataset_dir=../coco -o Train.num_classes=80 -o Train.epochs_iters=12 -o Train.batch_size=2 -o Train.learning_rate=0.0002 -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Train.pretrain_weight_path=None -o Global.output='./output/object_detection/Co-Deformable-DETR-R50_CINN' -o Train.dy2st=True
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python main.py -c paddlex/configs/modules/object_detection/Co-Deformable-DETR-R50.yaml -o Global.mode=train -o Global.dataset_dir=../coco -o Train.num_classes=80 -o Train.epochs_iters=12 -o Train.batch_size=2 -o Train.learning_rate=0.0002 -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.output='./output/object_detection/Co-Deformable-DETR-R50_dy'
1+
python main.py -c paddlex/configs/modules/object_detection/Co-Deformable-DETR-R50.yaml -o Global.mode=train -o Global.dataset_dir=../coco -o Train.num_classes=80 -o Train.epochs_iters=12 -o Train.batch_size=2 -o Train.learning_rate=0.0002 -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Train.pretrain_weight_path=None -o Global.output='./output/object_detection/Co-Deformable-DETR-R50_dy'
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
python main.py -c paddlex/configs/modules/semantic_segmentation/Deeplabv3-R50.yaml \
22
-o Global.mode=train -o Global.dataset_dir=../cityscapes \
3-
-o Train.num_classes=19 -o Train.epochs_iters=160000 -o Train.batch_size=1 \
4-
-o Train.warmup_steps=0 -o Train.learning_rate=0.005 \
5-
-o Global.device=gpu:0,1,2,3,4,5,6,7
6-
-o Global.output='./output/semantic_segmentation/Deeplabv3-R50_CINN'
3+
-o Train.num_classes=19 -o Train.epochs_iters=80000 -o Train.batch_size=4 \
4+
-o Train.warmup_steps=0 -o Train.learning_rate=0.04 \
5+
-o Global.device=gpu:0,1,2,3,4,5,6,7 \
6+
-o Global.output='./output/semantic_segmentation/Deeplabv3-R50_CINN' \
77
-o Train.dy2st=True
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
python main.py -c paddlex/configs/modules/semantic_segmentation/Deeplabv3-R50.yaml \
22
-o Global.mode=train -o Global.dataset_dir=../cityscapes \
3-
-o Train.num_classes=19 -o Train.epochs_iters=160000 -o Train.batch_size=1 \
4-
-o Train.warmup_steps=0 -o Train.learning_rate=0.005 \
5-
-o Global.device=gpu:0,1,2,3,4,5,6,7
3+
-o Train.num_classes=19 -o Train.epochs_iters=80000 -o Train.batch_size=4 \
4+
-o Train.warmup_steps=0 -o Train.learning_rate=0.04 \
5+
-o Global.device=gpu:0,1,2,3,4,5,6,7 \
66
-o Global.output='./output/semantic_segmentation/Deeplabv3-R50_dy'

framework/e2e/cinn_converge/MaskFormer_small_CINN.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ python main.py -c paddlex/configs/modules/semantic_segmentation/MaskFormer_small
22
-o Global.mode=train -o Global.dataset_dir=../ADEChallengeData2016 \
33
-o Train.num_classes=150 -o Train.epochs_iters=160000 -o Train.batch_size=4 \
44
-o Train.warmup_steps=1500 -o Train.learning_rate=0.00006 \
5-
-o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.output='./output/semantic_segmentation/MaskFormer_small_CINN' -o Train.dy2st=True
5+
-o Global.device=gpu:0,1,2,3,4,5,6,7 -o Train.pretrain_weight_path=None -o Global.output='./output/semantic_segmentation/MaskFormer_small_CINN' -o Train.dy2st=True

framework/e2e/cinn_converge/MaskFormer_small_dy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ python main.py -c paddlex/configs/modules/semantic_segmentation/MaskFormer_small
22
-o Global.mode=train -o Global.dataset_dir=../ADEChallengeData2016 \
33
-o Train.num_classes=150 -o Train.epochs_iters=160000 -o Train.batch_size=4 \
44
-o Train.warmup_steps=1500 -o Train.learning_rate=0.00006 \
5-
-o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.output='./output/semantic_segmentation/MaskFormer_small_dy'
5+
-o Global.device=gpu:0,1,2,3,4,5,6,7 -o Train.pretrain_weight_path=None -o Global.output='./output/semantic_segmentation/MaskFormer_small_dy'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python main.py -c paddlex/configs/modules/image_classification/MobileNetV2_x1_0.yaml -o Global.mode=train -o Train.num_classes=1000 -o Train.epochs_iters=240 -o Train.batch_size=32 -o Train.learning_rate=0.045 -o Train.pretrain_weight_path=None -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.dataset_dir=../ILSVRC2012/ -o Global.output='./output/image_classification/MobileNetV2_x1_0_CINN' -o Train.dy2st=True
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python main.py -c paddlex/configs/modules/image_classification/MobileNetV2_x1_0.yaml -o Global.mode=train -o Train.num_classes=1000 -o Train.epochs_iters=240 -o Train.batch_size=32 -o Train.learning_rate=0.045 -o Train.pretrain_weight_path=None -o Global.device=gpu:0,1,2,3,4,5,6,7 -o Global.dataset_dir=../ILSVRC2012/ -o Global.output='./output/image_classification/MobileNetV2_x1_0_dy'

0 commit comments

Comments
 (0)