Update davit.py

pull/1630/head
Fredo Guan 3 years ago
parent 3a422f735a
commit 2a55d9516e

@ -542,7 +542,6 @@ def checkpoint_filter_fn(state_dict, model):
state_dict = state_dict['state_dict'] state_dict = state_dict['state_dict']
out_dict = {} out_dict = {}
import re
for k, v in state_dict.items(): for k, v in state_dict.items():
k = k.replace('head.', 'head.fc.') k = k.replace('head.', 'head.fc.')

Loading…
Cancel
Save