Browse Source
        
      
      Add show results
      
        Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
      
      
        main
      
      
     
    
    
    
	
		
			
				 3 changed files with 
4 additions and 
3 deletions
			 
			
		 
		
			
				- 
					
					
					 
					README.md
				
- 
					
						
							
								BIN
							
						
					 result1.png
- 
					
						
							
								BIN
							
						
					 result2.png
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -28,9 +28,10 @@ import towhee | 
			
		
	
		
			
				
					|  |  |  |     towhee.glob('./archery.mp4') | 
			
		
	
		
			
				
					|  |  |  |           .video_decode.ffmpeg() | 
			
		
	
		
			
				
					|  |  |  |           .video_classification.pytorchvideo(model_name='slowfast_r50') | 
			
		
	
		
			
				
					|  |  |  |           .to_list() | 
			
		
	
		
			
				
					|  |  |  |           .show() | 
			
		
	
		
			
				
					|  |  |  | ) | 
			
		
	
		
			
				
					|  |  |  | ``` | 
			
		
	
		
			
				
					|  |  |  | <img src="./result1.png" height="45px"/> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | *Write a same pipeline with explicit inputs/outputs name specifications:* | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -43,10 +44,10 @@ import towhee | 
			
		
	
		
			
				
					|  |  |  |           .video_classification.pytorchvideo['frames', ('labels', 'scores', 'features')]( | 
			
		
	
		
			
				
					|  |  |  |                 model_name='slowfast_r50') | 
			
		
	
		
			
				
					|  |  |  |           .select['labels', 'scores', 'features']() | 
			
		
	
		
			
				
					|  |  |  |           .show() | 
			
		
	
		
			
				
					|  |  |  |           .show(formatter={'path':'video_path'}) | 
			
		
	
		
			
				
					|  |  |  | ) | 
			
		
	
		
			
				
					|  |  |  | ``` | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | <img src="./result2.png" height="80px"/> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | <br /> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
					
						
							
								
									
	| 
			
			
				
					
						
						
						
							
							![]()  
								
									Width: 
									 | 
									Height: 
									 | 
								
								Size: 14 KiB
							 | 
								
							
						 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
					
						
							
								
									
	| 
			
			
				
					
						
						
						
							
							![]()  
								
									Width: 
									 | 
									Height: 
									 | 
								
								Size: 92 KiB
							 |