torchvision nms bug fix

pull/1098/head
Glenn Jocher 2020-10-06 15:09:24 +02:00
parent 66676eb039
commit 124f0e8212
1 changed files with 1 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.nn.functional as F
import torchvision
logger = logging.getLogger(__name__)
@ -151,7 +152,6 @@ def model_info(model, verbose=False):
def load_classifier(name='resnet101', n=2):
# Loads a pretrained model reshaped to n-class output
import torchvision
model = torchvision.models.__dict__[name](pretrained=True)
# ResNet model properties