Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add upsampling parameter to Segformer #1106

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants