FLOPS verbose=False
This commit is contained in:
parent
a0a3bab9e6
commit
4a4bfb20de
|
@ -107,7 +107,7 @@ def model_info(model, verbose=False):
|
||||||
|
|
||||||
try: # FLOPS
|
try: # FLOPS
|
||||||
from thop import profile
|
from thop import profile
|
||||||
macs, _ = profile(model, inputs=(torch.zeros(1, 3, 480, 640),))
|
macs, _ = profile(model, inputs=(torch.zeros(1, 3, 480, 640),), verbose=False)
|
||||||
fs = ', %.1f GFLOPS' % (macs / 1E9 * 2)
|
fs = ', %.1f GFLOPS' % (macs / 1E9 * 2)
|
||||||
except:
|
except:
|
||||||
fs = ''
|
fs = ''
|
||||||
|
|
Loading…
Reference in New Issue