Update app.py
Browse files
app.py
CHANGED
@@ -33,4 +33,11 @@ def inference(img):
|
|
33 |
da_out = da_seg_out[0][0, :, :].detach().numpy()
|
34 |
return da_out,ll_out
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
da_out = da_seg_out[0][0, :, :].detach().numpy()
|
34 |
return da_out,ll_out
|
35 |
|
36 |
+
title="YOLOP"
|
37 |
+
description="Gradio demo for YOLOP: YOLOP pretrained on the BDD100K dataset. To use it, simply upload your image or click on one of the examples to load them. Read more at the links below"
|
38 |
+
|
39 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.11250' target='_blank'>YOLOP: You Only Look Once for Panoptic Driving Perception</a> | <a href='https://github.com/hustvl/YOLOP' target='_blank'>Github Repo</a></p>"
|
40 |
+
|
41 |
+
examples=[['frame_00_delay-0.13s.jpg']]
|
42 |
+
|
43 |
+
gr.Interface(inference,gr.inputs.Image(type="pil"),["image","image"],article=article,description=description,title=title,examples=examples).launch(debug=True)
|