【Pytorch】读取model中的module和name

例一  from torchvision import models import torch from torch.autograd import Variable import cv2 import numpy as np x = cv2.imread(r"./examples/both.png")[:,:,(2,1,0)] x = np.transpose(x, (2, 0, 1)) x
相关文章
相关标签/搜索