Skip to content

Commit

Permalink
[Fix] Modify configs use "img_res" (#316)
Browse files Browse the repository at this point in the history
* configs format correction

* format correction
  • Loading branch information
oneScotch authored Feb 25, 2023
1 parent 0e0c2ce commit 2e54142
Show file tree
Hide file tree
Showing 17 changed files with 53 additions and 53 deletions.
6 changes: 3 additions & 3 deletions configs/balanced_mse/resnet50_spin_ihmr_ft_baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_49'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -128,7 +128,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -139,7 +139,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/balanced_mse/resnet50_spin_ihmr_ft_bmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_49'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -135,7 +135,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -146,7 +146,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/gta_human/hmr/resnet50_hmr_gta_bt.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_54'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -91,7 +91,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -102,7 +102,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/gta_human/hmr/resnet50_hmr_gta_ft.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_54'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -93,7 +93,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -104,7 +104,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/gta_human/pare/hrnet_w32_conv_pare_gta_ft.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_24'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -145,7 +145,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -156,7 +156,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/gta_human/spin/resnet50_spin_gta_ft.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_49'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -118,7 +118,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -129,7 +129,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/hmr/resnet50_hmr_pw3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_54'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -91,7 +91,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -102,7 +102,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/hmr/resnet50_hmr_pw3d_e50_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_54'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -91,7 +91,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -102,7 +102,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
12 changes: 6 additions & 6 deletions configs/hybrik/resnet34_hybrik_mixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
dict(type='RandomOcclusion', occlusion_prob=0.9),
dict(type='HybrIKRandomFlip', flip_prob=0.5, flip_pairs=flip_pairs),
dict(type='NewKeypointsSelection', maps=keypoints_maps),
dict(type='HybrIKAffine', img_res=256),
dict(type='GenerateHybrIKTarget', img_res=256, test_mode=False),
dict(type='HybrIKAffine', img_res=img_res),
dict(type='GenerateHybrIKTarget', img_res=img_res, test_mode=False),
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
Expand All @@ -108,8 +108,8 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='NewKeypointsSelection', maps=keypoints_maps),
dict(type='HybrIKAffine', img_res=256),
dict(type='GenerateHybrIKTarget', img_res=256, test_mode=True),
dict(type='HybrIKAffine', img_res=img_res),
dict(type='GenerateHybrIKTarget', img_res=img_res, test_mode=True),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand All @@ -130,8 +130,8 @@
test_hp3d_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='NewKeypointsSelection', maps=hp3d_keypoints_map),
dict(type='HybrIKAffine', img_res=256),
dict(type='GenerateHybrIKTarget', img_res=256, test_mode=True),
dict(type='HybrIKAffine', img_res=img_res),
dict(type='GenerateHybrIKTarget', img_res=img_res, test_mode=True),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/pare/hrnet_w32_conv_pare_coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
occluders_file='data/occluders/pascal_occluders.npy'),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_49'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -148,7 +148,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -159,7 +159,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/pare/hrnet_w32_conv_pare_coco_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
occluders_file='data/occluders/pascal_occluders.npy'),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_49'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -148,7 +148,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -159,7 +159,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/pare/hrnet_w32_conv_pare_mix.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_24'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -145,7 +145,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -156,7 +156,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/pare/hrnet_w32_conv_pare_mix_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_24'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -145,7 +145,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -156,7 +156,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
6 changes: 3 additions & 3 deletions configs/pare/hrnet_w32_conv_pare_mix_no_mosh.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
dict(type='RandomChannelNoise', noise_factor=0.4),
dict(type='RandomHorizontalFlip', flip_prob=0.5, convention='smpl_24'),
dict(type='GetRandomScaleRotation', rot_factor=30, scale_factor=0.25),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -145,7 +145,7 @@
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='GetRandomScaleRotation', rot_factor=0, scale_factor=0),
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(type='ToTensor', keys=data_keys),
Expand All @@ -156,7 +156,7 @@
]

inference_pipeline = [
dict(type='MeshAffine', img_res=224),
dict(type='MeshAffine', img_res=img_res),
dict(type='Normalize', **img_norm_cfg),
dict(type='ImageToTensor', keys=['img']),
dict(
Expand Down
Loading

0 comments on commit 2e54142

Please sign in to comment.