BertChristiaens commited on
Commit
0819ae2
1 Parent(s): ba749e7

Update segmentation.py

Browse files
Files changed (1) hide show
  1. segmentation.py +1 -1
segmentation.py CHANGED
@@ -18,7 +18,7 @@ def flush():
18
  gc.collect()
19
  torch.cuda.empty_cache()
20
 
21
- @st.experimental_singleton(max_entries=5)
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: