Spaces:
Configuration error
Configuration error
Update segmentation.py
Browse files- segmentation.py +1 -1
segmentation.py
CHANGED
@@ -10,7 +10,7 @@ import cv2
|
|
10 |
model = None
|
11 |
extractor = None
|
12 |
|
13 |
-
def
|
14 |
global model, extractor
|
15 |
extractor = AutoFeatureExtractor.from_pretrained("mattmdjaga/segformer_b2_clothes")
|
16 |
model = SegformerForSemanticSegmentation.from_pretrained("mattmdjaga/segformer_b2_clothes").to("cuda")
|
|
|
10 |
model = None
|
11 |
extractor = None
|
12 |
|
13 |
+
def init():
|
14 |
global model, extractor
|
15 |
extractor = AutoFeatureExtractor.from_pretrained("mattmdjaga/segformer_b2_clothes")
|
16 |
model = SegformerForSemanticSegmentation.from_pretrained("mattmdjaga/segformer_b2_clothes").to("cuda")
|