gaf7921 commited on
Commit
66dca41
·
1 Parent(s): 1733d53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,10 +8,10 @@ import tensorflow as tf
8
  from transformers import SegformerFeatureExtractor, TFSegformerForSemanticSegmentation
9
 
10
  feature_extractor = SegformerFeatureExtractor.from_pretrained(
11
- "nvidia/segformer-b5-finetuned-ade-640-640"
12
  )
13
  model = TFSegformerForSemanticSegmentation.from_pretrained(
14
- "nvidia/segformer-b5-finetuned-ade-640-640"
15
  )
16
 
17
  def ade_palette():
@@ -235,7 +235,7 @@ def sepia(input_img):
235
  demo = gr.Interface(fn=sepia,
236
  inputs=gr.Image(shape=(400, 600)),
237
  outputs=['plot'],
238
- examples=["ADE_val_00000001.jpeg", "ADE_val_00001159.jpg", "ADE_val_00001248.jpg", "ADE_val_00001472.jpg"],
239
  allow_flagging='never')
240
 
241
 
 
8
  from transformers import SegformerFeatureExtractor, TFSegformerForSemanticSegmentation
9
 
10
  feature_extractor = SegformerFeatureExtractor.from_pretrained(
11
+ "nickmuchi/segformer-b4-finetuned-segments-sidewalk"
12
  )
13
  model = TFSegformerForSemanticSegmentation.from_pretrained(
14
+ "nickmuchi/segformer-b4-finetuned-segments-sidewalk"
15
  )
16
 
17
  def ade_palette():
 
235
  demo = gr.Interface(fn=sepia,
236
  inputs=gr.Image(shape=(400, 600)),
237
  outputs=['plot'],
238
+ examples=["side_walk1.jpg", "side_walk2.jpg", "side_walk3.jpg", "side_walk4.jpg"],
239
  allow_flagging='never')
240
 
241