这里使用ResNet-50的预训练模型。 resnet50 = models.resnet50(pretrained=True). 在PyTorch中加载模型时,所有参数的'requires_grad'字段默认设置为true。
確定! 回上一頁