Spaces:
Runtime error
Runtime error
Commit ·
0819ae2
1
Parent(s): ba749e7
Update segmentation.py
Browse files17 unmodified lines181920212122232417 unmodified lines gc.collect() torch.cuda.empty_cache()
@st.experimental_singleton(max_entries=5)@st.cache_resource(max_entries=5)def get_segmentation_pipeline() -> Tuple[AutoImageProcessor, UperNetForSemanticSegmentation]: """Method to load the segmentation pipeline Returns:segmentation.py+1-1