Update autoaug and randaug configs

pull/913/head
mzr1996 2022-06-02 17:10:14 +08:00
parent 05e4c13343
commit 6563f5f448
14 changed files with 14 additions and 34 deletions

View File

@ -1,5 +1,3 @@
_base_ = ['./pipelines/auto_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -19,7 +17,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='AutoAugment',
policies={{_base_.auto_increasing_policies}},
policies='imagenet',
hparams=dict(pad_val=[round(x) for x in bgr_mean])),
dict(
type='RandomErasing',

View File

@ -1,5 +1,3 @@
_base_ = ['./pipelines/rand_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -23,7 +21,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=9,

View File

@ -1,5 +1,3 @@
_base_ = ['./pipelines/rand_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -23,7 +21,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=9,

View File

@ -1,5 +1,3 @@
_base_ = ['./pipelines/rand_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -23,7 +21,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=7,

View File

@ -1,5 +1,3 @@
_base_ = ['./pipelines/rand_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -23,7 +21,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=6,

View File

@ -1,5 +1,3 @@
_base_ = ['./pipelines/auto_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -19,7 +17,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='AutoAugment',
policies={{_base_.auto_increasing_policies}},
policies='imagenet',
hparams=dict(
pad_val=[round(x) for x in bgr_mean], interpolation='bicubic')),
dict(type='PackClsInputs'),

View File

@ -1,5 +1,3 @@
_base_ = ['./pipelines/rand_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -23,7 +21,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=9,

View File

@ -1,5 +1,3 @@
_base_ = ['pipelines/auto_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -23,7 +21,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='AutoAugment',
policies={{_base_.policy_imagenet}},
policies='imagenet',
hparams=dict(
pad_val=[round(x) for x in bgr_mean], interpolation='bicubic')),
dict(type='PackClsInputs'),

View File

@ -1,5 +1,3 @@
_base_ = ['./pipelines/rand_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -23,7 +21,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=9,

View File

@ -1,5 +1,3 @@
_base_ = ['./pipelines/rand_aug.py']
# dataset settings
dataset_type = 'ImageNet'
preprocess_cfg = dict(
@ -23,7 +21,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=9,

View File

@ -26,7 +26,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=9,

View File

@ -26,7 +26,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=9,

View File

@ -26,7 +26,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=9,

View File

@ -26,7 +26,7 @@ train_pipeline = [
dict(type='RandomFlip', prob=0.5, direction='horizontal'),
dict(
type='RandAugment',
policies={{_base_.rand_increasing_policies}},
policies='timm_increasing',
num_policies=2,
total_level=10,
magnitude_level=9,