You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your remarkable work, when I use the pretrained model ,I found it difficult to scale the input Image size,even I use the image size like window_size*2^n , it loads failed. So I check the code, find that In Class SwinTransformerBlock code self.register_buffer("attn_mask", attn_mask) is unnecessary,because attn_mask is not a learnable parameter, if you register it as buffer, it will hinder you change the input Image size
The text was updated successfully, but these errors were encountered:
Hi there, I did as u said to load pretrained model but I only can load the state_dict to model and still can not parse the image through the model due to the lack of attn_mask. Could u explain why?. In case I want to train with another image size, how can I train the model?
Thanks for your remarkable work, when I use the pretrained model ,I found it difficult to scale the input Image size,even I use the image size like
window_size*2^n
, it loads failed. So I check the code, find that InClass SwinTransformerBlock
codeself.register_buffer("attn_mask", attn_mask)
is unnecessary,becauseattn_mask
is not a learnable parameter, if you register it as buffer, it will hinder you change the input Image sizeThe text was updated successfully, but these errors were encountered: