Commit 
							
							·
						
						0819ae2
	
1
								Parent(s):
							
							ba749e7
								
Update segmentation.py
Browse files- segmentation.py +1 -1
    	
        segmentation.py
    CHANGED
    
    | @@ -18,7 +18,7 @@ def flush(): | |
| 18 | 
             
                gc.collect()
         | 
| 19 | 
             
                torch.cuda.empty_cache()
         | 
| 20 |  | 
| 21 | 
            -
            @st. | 
| 22 | 
             
            def get_segmentation_pipeline() -> Tuple[AutoImageProcessor, UperNetForSemanticSegmentation]:
         | 
| 23 | 
             
                """Method to load the segmentation pipeline
         | 
| 24 | 
             
                Returns:
         | 
|  | |
| 18 | 
             
                gc.collect()
         | 
| 19 | 
             
                torch.cuda.empty_cache()
         | 
| 20 |  | 
| 21 | 
            +
            @st.cache_resource(max_entries=5)
         | 
| 22 | 
             
            def get_segmentation_pipeline() -> Tuple[AutoImageProcessor, UperNetForSemanticSegmentation]:
         | 
| 23 | 
             
                """Method to load the segmentation pipeline
         | 
| 24 | 
             
                Returns:
         | 
