Skip to content

Commit 1901eb7

Browse files
committed
update PAN test sample size
1 parent 5e6db7e commit 1901eb7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ def get_sample(model_class):
3131
smp.Segformer,
3232
]:
3333
sample = torch.ones([1, 3, 64, 64])
34-
elif model_class == smp.PAN:
35-
sample = torch.ones([2, 3, 256, 256])
36-
elif model_class in [smp.DeepLabV3, smp.DeepLabV3Plus]:
34+
elif model_class in [smp.PAN, smp.DeepLabV3, smp.DeepLabV3Plus]:
3735
sample = torch.ones([2, 3, 128, 128])
3836
elif model_class in [smp.PSPNet, smp.UPerNet]:
3937
# Batch size 2 needed due to nn.BatchNorm2d not supporting (1, C, 1, 1) input

0 commit comments

Comments
 (0)