shyamgupta196 commited on
Commit
ff3b43f
·
1 Parent(s): 2a0e034
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ import gradio as gr
9
  def seg(image):
10
  ## first resize the image !!
11
  image.resize((200,200))
12
- feature_extractor = AutoFeatureExtractor.from_pretrained("nvidia/mit-b0")
13
- model = SegformerForSemanticSegmentation.from_pretrained("nvidia/mit-b0")
14
  print(model)
15
 
16
  inputs = feature_extractor(images=image, return_tensors="pt")
 
9
  def seg(image):
10
  ## first resize the image !!
11
  image.resize((200,200))
12
+ feature_extractor = AutoFeatureExtractor.from_pretrained("nvidia/mit-b5")
13
+ model = SegformerForSemanticSegmentation.from_pretrained("nvidia/mit-b5")
14
  print(model)
15
 
16
  inputs = feature_extractor(images=image, return_tensors="pt")