get_yolo_layers()

This commit is contained in:
Glenn Jocher 2020-04-11 10:55:49 -07:00
parent 58edfc4a84
commit dcc2e99fb2
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ class Darknet(nn.Module):
def get_yolo_layers(model): def get_yolo_layers(model):
return [i for i, x in enumerate(model.module_defs) if x['type'] == 'yolo'] # [82, 94, 106] for yolov3 return [i for i, m in enumerate(model.module_list) if m.__class__.__name__ == 'YOLOLayer'] # [89, 101, 1113]
def load_darknet_weights(self, weights, cutoff=-1): def load_darknet_weights(self, weights, cutoff=-1):