get_yolo_layers()

This commit is contained in:
Glenn Jocher 2020-04-11 10:56:20 -07:00
parent dcc2e99fb2
commit 7be71b02e2
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, m in enumerate(model.module_list) if m.__class__.__name__ == 'YOLOLayer'] # [89, 101, 1113] return [i for i, m in enumerate(model.module_list) if m.__class__.__name__ == 'YOLOLayer'] # [89, 101, 113]
def load_darknet_weights(self, weights, cutoff=-1): def load_darknet_weights(self, weights, cutoff=-1):