vobecant
commited on
Commit
·
8490416
1
Parent(s):
769fe72
Initial commit.
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from torchvision import transforms
|
|
13 |
# WEIGHTS = './weights/segmenter.pth
|
14 |
WEIGHTS = './weights/segmenter_nusc.pth'
|
15 |
FULL = True
|
16 |
-
CACHE =
|
17 |
ALPHA = 0.5
|
18 |
|
19 |
|
@@ -233,7 +233,7 @@ iface = gr.Interface(predict, inputs=gr.Image(type='filepath'), title=title, des
|
|
233 |
# theme='dark',
|
234 |
outputs=[gr.Image(label="Pseudo segmentation", type="pil"),
|
235 |
gr.Image(label="Mapping to Cityscapes", type="pil")],
|
236 |
-
examples=examples, cache_examples=
|
237 |
# iface = gr.Interface(predict, gr.inputs.Image(type='filepath'),
|
238 |
# "image", title=title, description=description,
|
239 |
# examples=examples)
|
|
|
13 |
# WEIGHTS = './weights/segmenter.pth
|
14 |
WEIGHTS = './weights/segmenter_nusc.pth'
|
15 |
FULL = True
|
16 |
+
CACHE = True
|
17 |
ALPHA = 0.5
|
18 |
|
19 |
|
|
|
233 |
# theme='dark',
|
234 |
outputs=[gr.Image(label="Pseudo segmentation", type="pil"),
|
235 |
gr.Image(label="Mapping to Cityscapes", type="pil")],
|
236 |
+
examples=examples, cache_examples=CACHE)
|
237 |
# iface = gr.Interface(predict, gr.inputs.Image(type='filepath'),
|
238 |
# "image", title=title, description=description,
|
239 |
# examples=examples)
|