Skip to content

Add upsampling parameter to Segformer #1106

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
thierrypin opened this issue Mar 26, 2025 · 1 comment
Open

Add upsampling parameter to Segformer #1106

thierrypin opened this issue Mar 26, 2025 · 1 comment
Labels
feature good first issue Good for newcomers

Comments

@thierrypin
Copy link

I did this locally and it works perfectly well, but I legally cannot make a pull request. It is simple and easy.

On file segmentation_models_pytorch/decoders/segformer/model.py:

Line 60: Add upsampling: int = 4,, after activation param and before aux_params.
Line 85: swap the parameter value from 4 to upsampling.

This is all. I've done it locally and I think the community would benefit.

Thank you

@qubvel
Copy link
Collaborator

qubvel commented Mar 26, 2025

Sounds good to me! Will add a tag for contribution form community

@qubvel qubvel added good first issue Good for newcomers feature labels Mar 26, 2025
DCalhas added a commit to DCalhas/segmentation_models.pytorch that referenced this issue Apr 11, 2025
qubvel pushed a commit that referenced this issue Apr 11, 2025
* add upsampling parameter #1106

* docstring upsampling parameter #1123
@qubvel qubvel mentioned this issue Apr 16, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants