-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
KeyError when using Segformer architecture in segmentation_models_pytorch #1019
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
Comments
Hey! Segformer is not yet in the release, please install from source. The release planned in a week |
Hey @qubvel, so great work with this repository! |
Hi @Alberto1404, thanks for reporting this! Yes, it's not implemented yet, but it would be great to have this option! The feature should be fairly simple to implement. Let me know if you have the bandwidth to contribute, otherwise, I will take care of it 🤗 |
Hi @qubvel, I attempted to spend some time during weekend, as the following days I won't be able to do anything. If you don't mind taking care of it, I will be highly appreciated. |
Hey @Alberto1404, the PR is up |
Awesome! |
Description:
I encountered an error while trying to use the "Segformer" architecture in segmentation_models_pytorch as shown below:
Error:
KeyError: "Wrong architecture type Segformer. Available options are: ['unet', 'unetplusplus', 'manet', 'linknet', 'fpn', 'pspnet', 'deeplabv3', 'deeplabv3plus', 'pan']"
It appears that the "Segformer" architecture is not linked to the library. Based on the error message, only the listed architectures are currently available for use.
Environment:
segmentation_models_pytorch version: 0.3.4
Python version: 3.8
I believe the architecture might not be integrated into the library yet.
Please let me know if there are any updates regarding this,
if there’s another way to use Segformer with this library.
Thanks <3
The text was updated successfully, but these errors were encountered: