mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
fix assert (#3119)
This commit is contained in:
parent
b0635ff783
commit
b8b6ee6017
@ -328,7 +328,7 @@ class EncoderDecoder(BaseSegmentor):
|
||||
"""
|
||||
assert self.test_cfg.get('mode', 'whole') in ['slide', 'whole'], \
|
||||
f'Only "slide" or "whole" test mode are supported, but got ' \
|
||||
f'{self.test_cfg.mode}'
|
||||
f'{self.test_cfg["mode"]}.'
|
||||
ori_shape = batch_img_metas[0]['ori_shape']
|
||||
assert all(_['ori_shape'] == ori_shape for _ in batch_img_metas)
|
||||
if self.test_cfg.mode == 'slide':
|
||||
|
Loading…
x
Reference in New Issue
Block a user