[~] Refactor

This commit is contained in:
Siarhei Siniak 2021-07-23 10:07:09 +03:00
parent 8c37e47869
commit bab23747e3

@ -1019,7 +1019,13 @@ def kernel_15(
) )
) )
t2 = 'baseball glove' for t2 in [
'baseball glove',
'baseball bat',
'sports ball',
'person',
]:
t28 = t2.replace(' ', '-')
t3 = o_14['o_13']['t1'] t3 = o_14['o_13']['t1']
t4 = numpy.where(t3.name.data == t2)[0] t4 = numpy.where(t3.name.data == t2)[0]
@ -1072,7 +1078,6 @@ def kernel_15(
) )
) )
matplotlib.pyplot.imshow(t14) matplotlib.pyplot.imshow(t14)
t28 = t8['name'].replace(' ', '-')
t25 = 'kernel_15-%s-%05d.jpg' % ( t25 = 'kernel_15-%s-%05d.jpg' % (
t28, t28,
t7, t7,
@ -1089,7 +1094,7 @@ def kernel_15(
], axis=1).T ], axis=1).T
) )
t23 = 'output.gif' t23 = 'output-%s.gif' % t28
if os.path.exists(t23): if os.path.exists(t23):
subprocess.check_call(['rm', t23]) subprocess.check_call(['rm', t23])