Browse Source
        
      
      Resolve module import issue
      
        Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
      
      
        main
      
      
     
    
    
    
	
		
			
				 1 changed files with 
4 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					vggish.py
				
				
				
					
						
							
								
									
	
		
			
				|  | @ -13,7 +13,10 @@ | 
		
	
		
			
				|  |  | # limitations under the License. |  |  | # limitations under the License. | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | import logging |  |  | import logging | 
		
	
		
			
				|  |  |  |  |  | import warnings | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  | import os |  |  | import os | 
		
	
		
			
				|  |  |  |  |  | import sys | 
		
	
		
			
				|  |  | import numpy |  |  | import numpy | 
		
	
		
			
				|  |  | from pathlib import Path |  |  | from pathlib import Path | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
	
		
			
				|  | @ -23,10 +26,9 @@ from towhee.operator.base import NNOperator | 
		
	
		
			
				|  |  | from towhee.models.vggish.torch_vggish import VGG |  |  | from towhee.models.vggish.torch_vggish import VGG | 
		
	
		
			
				|  |  | from towhee import register |  |  | from towhee import register | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  | sys.path.append(str(Path(__file__).parent)) | 
		
	
		
			
				|  |  | import vggish_input |  |  | import vggish_input | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | import warnings |  |  |  | 
		
	
		
			
				|  |  | 
 |  |  |  | 
		
	
		
			
				|  |  | warnings.filterwarnings('ignore') |  |  | warnings.filterwarnings('ignore') | 
		
	
		
			
				|  |  | log = logging.getLogger() |  |  | log = logging.getLogger() | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
	
		
			
				|  | 
 |