Skip to content

Commit

Permalink
update PAN test sample size
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhou0208 committed Dec 4, 2024
1 parent 5e6db7e commit 1901eb7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ def get_sample(model_class):
smp.Segformer,
]:
sample = torch.ones([1, 3, 64, 64])
elif model_class == smp.PAN:
sample = torch.ones([2, 3, 256, 256])
elif model_class in [smp.DeepLabV3, smp.DeepLabV3Plus]:
elif model_class in [smp.PAN, smp.DeepLabV3, smp.DeepLabV3Plus]:
sample = torch.ones([2, 3, 128, 128])
elif model_class in [smp.PSPNet, smp.UPerNet]:
# Batch size 2 needed due to nn.BatchNorm2d not supporting (1, C, 1, 1) input
Expand Down

0 comments on commit 1901eb7

Please sign in to comment.