Skip to content

Commit 7c3cae2

Browse files
committed
bug fixing
1 parent 50673ef commit 7c3cae2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ def main():
208208
# return
209209
# set bn
210210
# model.set_bn_param(config.bn_momentum, config.bn_eps)
211-
import pdb; pdb.set_trace()
211+
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]
212214
model.load_state_dict(ckpt['state_dict_ema'])
213215
# model init
214216
# model.init_model(model_init=config.model_init)

0 commit comments

Comments
 (0)