From 9fb99b4cda3eb681d29dd3d0d4536aa12e18057b Mon Sep 17 00:00:00 2001 From: sennnnn <201730271412@mail.scut.edu.cn> Date: Fri, 16 Apr 2021 11:40:49 +0800 Subject: [PATCH] fix the bug "test_cfg specified in both outer field and model field " of pspnet config file; --- configs/pspnet/pspnet_r50-d8_480x480_40k_pascal_context.py | 5 +++-- .../pspnet/pspnet_r50-d8_480x480_40k_pascal_context_59.py | 5 +++-- configs/pspnet/pspnet_r50-d8_480x480_80k_pascal_context.py | 5 +++-- .../pspnet/pspnet_r50-d8_480x480_80k_pascal_context_59.py | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/configs/pspnet/pspnet_r50-d8_480x480_40k_pascal_context.py b/configs/pspnet/pspnet_r50-d8_480x480_40k_pascal_context.py index 86da94de5b..30abe46e70 100644 --- a/configs/pspnet/pspnet_r50-d8_480x480_40k_pascal_context.py +++ b/configs/pspnet/pspnet_r50-d8_480x480_40k_pascal_context.py @@ -4,6 +4,7 @@ '../_base_/schedules/schedule_40k.py' ] model = dict( - decode_head=dict(num_classes=60), auxiliary_head=dict(num_classes=60)) -test_cfg = dict(mode='slide', crop_size=(480, 480), stride=(320, 320)) + decode_head=dict(num_classes=60), + auxiliary_head=dict(num_classes=60), + test_cfg=dict(mode='slide', crop_size=(480, 480), stride=(320, 320))) optimizer = dict(type='SGD', lr=0.004, momentum=0.9, weight_decay=0.0001) diff --git a/configs/pspnet/pspnet_r50-d8_480x480_40k_pascal_context_59.py b/configs/pspnet/pspnet_r50-d8_480x480_40k_pascal_context_59.py index c7ef488c76..88041c6817 100644 --- a/configs/pspnet/pspnet_r50-d8_480x480_40k_pascal_context_59.py +++ b/configs/pspnet/pspnet_r50-d8_480x480_40k_pascal_context_59.py @@ -4,6 +4,7 @@ '../_base_/schedules/schedule_40k.py' ] model = dict( - decode_head=dict(num_classes=59), auxiliary_head=dict(num_classes=59)) -test_cfg = dict(mode='slide', crop_size=(480, 480), stride=(320, 320)) + decode_head=dict(num_classes=59), + auxiliary_head=dict(num_classes=59), + test_cfg=dict(mode='slide', crop_size=(480, 480), stride=(320, 320))) optimizer = dict(type='SGD', lr=0.004, momentum=0.9, weight_decay=0.0001) diff --git a/configs/pspnet/pspnet_r50-d8_480x480_80k_pascal_context.py b/configs/pspnet/pspnet_r50-d8_480x480_80k_pascal_context.py index cbb02714b9..09e96dabf7 100644 --- a/configs/pspnet/pspnet_r50-d8_480x480_80k_pascal_context.py +++ b/configs/pspnet/pspnet_r50-d8_480x480_80k_pascal_context.py @@ -4,6 +4,7 @@ '../_base_/schedules/schedule_80k.py' ] model = dict( - decode_head=dict(num_classes=60), auxiliary_head=dict(num_classes=60)) -test_cfg = dict(mode='slide', crop_size=(480, 480), stride=(320, 320)) + decode_head=dict(num_classes=60), + auxiliary_head=dict(num_classes=60), + test_cfg=dict(mode='slide', crop_size=(480, 480), stride=(320, 320))) optimizer = dict(type='SGD', lr=0.004, momentum=0.9, weight_decay=0.0001) diff --git a/configs/pspnet/pspnet_r50-d8_480x480_80k_pascal_context_59.py b/configs/pspnet/pspnet_r50-d8_480x480_80k_pascal_context_59.py index 5d96abd5bd..d4065ec05c 100644 --- a/configs/pspnet/pspnet_r50-d8_480x480_80k_pascal_context_59.py +++ b/configs/pspnet/pspnet_r50-d8_480x480_80k_pascal_context_59.py @@ -4,6 +4,7 @@ '../_base_/schedules/schedule_80k.py' ] model = dict( - decode_head=dict(num_classes=59), auxiliary_head=dict(num_classes=59)) -test_cfg = dict(mode='slide', crop_size=(480, 480), stride=(320, 320)) + decode_head=dict(num_classes=59), + auxiliary_head=dict(num_classes=59), + test_cfg=dict(mode='slide', crop_size=(480, 480), stride=(320, 320))) optimizer = dict(type='SGD', lr=0.004, momentum=0.9, weight_decay=0.0001)