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

DeepLabV3 and DeepLabV3+ cannot use encoder “Xception” #1062

Open
MrLangZe opened this issue Feb 18, 2025 · 2 comments
Open

DeepLabV3 and DeepLabV3+ cannot use encoder “Xception” #1062

MrLangZe opened this issue Feb 18, 2025 · 2 comments

Comments

@MrLangZe
Copy link

MrLangZe commented Feb 18, 2025

hi,when i run model = Model("deeplabv3", "xception", in_channels=3, out_classes=OUT_CLASSES) , the error is "ValueError: Xception encoder does not support dilated mode due to pooling operation for downsampling!". So how can i solve it?

@qubvel
Copy link
Collaborator

qubvel commented Feb 18, 2025

Hey @MrLangZe, indeed, Deeplab models require the last stages of the encoder to be with the same stride, which is not supported for all encoders. At the moment there is no way to fix it out of the box for Xception, it would be easier to use another encoder.

@MrLangZe
Copy link
Author

MrLangZe commented Feb 18, 2025

Hey @MrLangZe, indeed, Deeplab models require the last stages of the encoder to be with the same stride, which is not supported for all encoders. At the moment there is no way to fix it out of the box for Xception, it would be easier to use another encoder.

Thanks for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants