赞
踩
import torch net=torch.load('C:/Users/yan/.cache/torch/hub/checkpoints/swin_base_patch4_window7_224_22kto1k.pth') print(net) print(type(net)) print(len(net)) for k in net.keys(): print(k) for key,value in net["model"].items(): print(key,value.size(),sep=" ")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。