-
Notifications
You must be signed in to change notification settings - Fork 9
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
DeepLabV3Plus is not compatible with encoder_depth=4 and swin models #54
Comments
The issue lies here and it gets solved when u do
|
It also gets resolved if the scale factor is 8 , but not sure of the far reaching implications of this change while training , needs to be empirically tested. |
But these changes would make it incompatible with encoder_depth=5 , so there should be a way to handle different depth cases |
@isaaccorley any idea on how to go about this |
So i was working with both swinv2_tiny_window8_256 and swinv2_base_window12to16_192to256 and noticed that it was not loading with torchseg.DeepLabV3Plus
in both the cases it gives this error , for a sample code here u go
It gives this error
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 128 but got size 256 for tensor number 1 in the list.
But this error occurs also with resent50 when the encoder depth = 4
So i changed the encoder depth as 5 and this worked now for resent50.
But swin models have a maximum depth of 4 for the encoders and this makes it incompatible to work with swin models , is there any easy fix around for it ?
The text was updated successfully, but these errors were encountered: