pytorch merge bn (model from mmdetec)
import os
import torch
src_weight = 'epoch_12.pth'
model = torch.load(src_weight)
weight = model['state_dict']
filter_names = []
layer_names = list(weight.keys())
for layer_name in layer_names:
...
原创
2019-10-15 01:18:27 ·
362 阅读 ·
0 评论