FocalLoss() and obj loss speed and stability update

This commit is contained in:
Glenn Jocher 2020-03-19 12:30:37 -07:00
parent 20454990ce
commit 83c9cfb7de
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def model_info(model, verbose=False):
(i, name, p.requires_grad, p.numel(), list(p.shape), p.mean(), p.std()))
print('Model Summary: %g layers, %g parameters, %g gradients' % (len(list(model.parameters())), n_p, n_g))
# Report FLOPS
# FLOPS report
# from thop import profile
# macs, params = profile(model, inputs=(torch.zeros(1, 3, 608, 608),))
# print('%.3f FLOPS' % (macs / 1E9 * 2))