[~] Refactor
This commit is contained in:
		
							parent
							
								
									86c4b4f931
								
							
						
					
					
						commit
						edd3100759
					
				| @ -1022,6 +1022,8 @@ def kernel_15( | ||||
|     t2 = 'baseball glove' | ||||
|     t3 = o_14['o_13']['t1'] | ||||
|     t4 = numpy.where(t3.name.data == t2)[0] | ||||
| 
 | ||||
|     for k in tqdm.tqdm(range(-10, -1)): | ||||
|         t5 = t4[-1] | ||||
|         t6 = t3.video_path.data[t5] | ||||
|         t7 = t3.frame_id.data[t5] | ||||
| @ -1059,6 +1061,17 @@ def kernel_15( | ||||
|         pprint.pprint( | ||||
|             locals() | ||||
|         ) | ||||
|         f = matplotlib.pyplot.figure() | ||||
|         matplotlib.pyplot.title( | ||||
|             'name %s, score %s, frame_id %d' % ( | ||||
|                 t8.name, | ||||
|                 t8.confidence, | ||||
|                 t8.frame_id, | ||||
|             ) | ||||
|         ) | ||||
|         matplotlib.pyplot.imshow(t14) | ||||
|         f.savefig('kernel_15-%05d.png' % t7) | ||||
|         matplotlib.pyplot.close(f) | ||||
| 
 | ||||
| 
 | ||||
|     return dict( | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Siarhei Siniak
						Siarhei Siniak