timmy0079 commited on
Commit
fc2beda
1 Parent(s): 8919890

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,9 +9,9 @@ import numpy as np
9
  import tensorflow as tf
10
 
11
  feature_extractor = SegformerFeatureExtractor.from_pretrained(
12
- "nvidia/segformer-b0-finetuned-ade-512-512", from_pt=True)
13
  model = SegformerForSemanticSegmentation.from_pretrained(
14
- "segments-tobias/segformer-b0-finetuned-segments-sidewalk", from_pt=True)
15
 
16
  def ade_palette():
17
  """ADE20K palette that maps each class to RGB values."""
 
9
  import tensorflow as tf
10
 
11
  feature_extractor = SegformerFeatureExtractor.from_pretrained(
12
+ "nvidia/segformer-b0-finetuned-ade-512-512")
13
  model = SegformerForSemanticSegmentation.from_pretrained(
14
+ "segments-tobias/segformer-b0-finetuned-segments-sidewalk")
15
 
16
  def ade_palette():
17
  """ADE20K palette that maps each class to RGB values."""