Arknightpzb
Arknightpzb
这是没有加test_cfg @xiaowuwqg 在模型配置文件里加上 train_cfg=dict(), test_cfg=dict(mode='whole') 就行 示例: _base_ = [ '../_base_/datasets/loveda.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ] checkpoint_path = 'https://download.openmmlab.com/mmclassification/v1/vit_sam/vit-base-p16_sam-pre_3rdparty_sa1b-1024px_20230411-2320f9cc.pth' # noqa data_preprocessor = dict( type='SegDataPreProcessor', mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], bgr_to_rgb=True,...
It seems that this problem stems from the usage of DDP. Problem goes away when I try to use **accelerate** to train the models.