namkwonwoo commited on
Commit
c7ba35b
1 Parent(s): af36da7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -16,14 +16,10 @@ from transformers import AutoFeatureExtractor, SegformerForSemanticSegmentation
16
  feature_extractor = AutoFeatureExtractor.from_pretrained("mattmdjaga/segformer_b2_clothes")
17
  model = SegformerForSemanticSegmentation.from_pretrained("mattmdjaga/segformer_b2_clothes")
18
 
19
- #from transformers import SegformerFeatureExtractor, TFSegformerForSemanticSegmentation
20
-
21
- #feature_extractor = SegformerFeatureExtractor.from_pretrained(
22
- "mattmdjaga/segformer_b2_clothes"
23
- )
24
- #model = TFSegformerForSemanticSegmentation.from_pretrained(
25
- "mattmdjaga/segformer_b2_clothes"
26
- )
27
 
28
  def ade_palette():
29
  """ADE20K palette that maps each class to RGB values."""
 
16
  feature_extractor = AutoFeatureExtractor.from_pretrained("mattmdjaga/segformer_b2_clothes")
17
  model = SegformerForSemanticSegmentation.from_pretrained("mattmdjaga/segformer_b2_clothes")
18
 
19
+ '''from transformers import SegformerFeatureExtractor, TFSegformerForSemanticSegmentation
20
+
21
+ feature_extractor = SegformerFeatureExtractor.from_pretrained("mattmdjaga/segformer_b2_clothes")
22
+ model = TFSegformerForSemanticSegmentation.from_pretrained("mattmdjaga/segformer_b2_clothes")'''
 
 
 
 
23
 
24
  def ade_palette():
25
  """ADE20K palette that maps each class to RGB values."""