We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9532612 commit bc9cde2Copy full SHA for bc9cde2
segmentation_models_pytorch/decoders/segformer/model.py
@@ -56,6 +56,7 @@ def __init__(
56
in_channels: int = 3,
57
classes: int = 1,
58
activation: Optional[Union[str, Callable]] = None,
59
+ upsampling: int = 4,
60
aux_params: Optional[dict] = None,
61
**kwargs: dict[str, Any],
62
):
@@ -80,7 +81,7 @@ def __init__(
80
81
out_channels=classes,
82
activation=activation,
83
kernel_size=1,
- upsampling=4,
84
+ upsampling=upsampling,
85
)
86
87
if aux_params is not None:
0 commit comments