Spaces:
Runtime error
Runtime error
shyamgupta196
commited on
Commit
·
2ea0e86
1
Parent(s):
ff3b43f
remove resize
Browse files
app.py
CHANGED
@@ -7,8 +7,6 @@ from PIL import Image
|
|
7 |
import gradio as gr
|
8 |
|
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)
|
|
|
7 |
import gradio as gr
|
8 |
|
9 |
def seg(image):
|
|
|
|
|
10 |
feature_extractor = AutoFeatureExtractor.from_pretrained("nvidia/mit-b5")
|
11 |
model = SegformerForSemanticSegmentation.from_pretrained("nvidia/mit-b5")
|
12 |
print(model)
|