-
Notifications
You must be signed in to change notification settings - Fork 12
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
init_weight got a table_key Error #4
Comments
hi, you can check two things first.
|
I have tried to set |
I change the code as below, so the # interpolate position bias table if needed
relative_position_bias_table_keys = [
# k for k in state_dict.keys()
k for k in self.state_dict().keys()
if 'relative_position_bias_table' in k
] |
在问题7说提及这样修改会导致问题,那么我改如何修改初始化,只利用swin tranformer的原始数据而不利用solider |
I try to run swin_small model, and I have convert_model to teacher model, met an error like fllow:
It may means that could not fund a dict key in
self.state_dict()
, and I found thetable_key
is obtain from thepretained model
.Should I change the source of
table key
to obrain thetable_key
from theSwinTransformer model itself
or its just my error not the code.The text was updated successfully, but these errors were encountered: