altayavci commited on
Commit
2d7bec9
1 Parent(s): 3500945

Update segmentation.py

Browse files
Files changed (1) hide show
  1. segmentation.py +1 -1
segmentation.py CHANGED
@@ -10,7 +10,7 @@ import cv2
10
  model = None
11
  extractor = None
12
 
13
- def init_body():
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")