We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50673ef commit 7c3cae2Copy full SHA for 7c3cae2
test.py
@@ -208,7 +208,9 @@ def main():
208
# return
209
# set bn
210
# model.set_bn_param(config.bn_momentum, config.bn_eps)
211
- import pdb; pdb.set_trace()
+ for _key in list(ckpt['state_dict_ema'].keys()):
212
+ if 'total_ops' in _key or 'total_params' in _key:
213
+ del ckpt['state_dict_ema'][_key]
214
model.load_state_dict(ckpt['state_dict_ema'])
215
# model init
216
# model.init_model(model_init=config.model_init)
0 commit comments