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