Skip to content

Commit e96fc51

Browse files
committed
update summary
1 parent 1c4460a commit e96fc51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

summary.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#--------------------------------------------#
44
import torch
55
from thop import clever_format, profile
6-
from torchsummary import summary
76

87
from nets.yolo import YoloBody
98

@@ -15,7 +14,9 @@
1514

1615
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
1716
m = YoloBody(anchors_mask, num_classes, phi, False).to(device)
18-
summary(m, (3, input_shape[0], input_shape[1]))
17+
for i in m.children():
18+
print(i)
19+
print('==============================')
1920

2021
dummy_input = torch.randn(1, 3, input_shape[0], input_shape[1]).to(device)
2122
flops, params = profile(m.to(device), (dummy_input, ), verbose=False)

0 commit comments

Comments
 (0)