jioji0 commited on
Commit
4467e93
2 Parent(s): c62773e e7d73f6

Merge remote-tracking branch 'origin/main'

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,7 +11,8 @@ feature_extractor = SegformerFeatureExtractor.from_pretrained(
11
  "nvidia/segformer-b2-finetuned-cityscapes-1024-1024"
12
  )
13
  model = TFSegformerForSemanticSegmentation.from_pretrained(
14
- "nvidia/segformer-b2-finetuned-cityscapes-1024-1024"
 
15
  )
16
 
17
  def ade_palette():
 
11
  "nvidia/segformer-b2-finetuned-cityscapes-1024-1024"
12
  )
13
  model = TFSegformerForSemanticSegmentation.from_pretrained(
14
+ "nvidia/segformer-b2-finetuned-cityscapes-1024-1024",
15
+ from_pt=True
16
  )
17
 
18
  def ade_palette():