Commit
·
6062bb7
1
Parent(s):
a62a45b
print self.yaml['nc'] override update
Browse files- models/yolo.py +1 -1
models/yolo.py
CHANGED
@@ -71,7 +71,7 @@ class Model(nn.Module):
|
|
71 |
|
72 |
# Define model
|
73 |
if nc and nc != self.yaml['nc']:
|
74 |
-
print('Overriding
|
75 |
self.yaml['nc'] = nc # override yaml value
|
76 |
self.model, self.save = parse_model(deepcopy(self.yaml), ch=[ch]) # model, savelist, ch_out
|
77 |
# print([x.shape for x in self.forward(torch.zeros(1, ch, 64, 64))])
|
|
|
71 |
|
72 |
# Define model
|
73 |
if nc and nc != self.yaml['nc']:
|
74 |
+
print('Overriding model.yaml nc=%g with nc=%g' % (self.yaml['nc'], nc))
|
75 |
self.yaml['nc'] = nc # override yaml value
|
76 |
self.model, self.save = parse_model(deepcopy(self.yaml), ch=[ch]) # model, savelist, ch_out
|
77 |
# print([x.shape for x in self.forward(torch.zeros(1, ch, 64, 64))])
|