Update app.py
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ def depth_normal(img):
|
|
| 79 |
##formatted = (output * 255 / np.max(output)).astype('uint8')
|
| 80 |
img = Image.fromarray(pred_color)
|
| 81 |
img_normal = Image.fromarray(pred_color_normal)
|
| 82 |
-
return img
|
| 83 |
|
| 84 |
#inputs = gr.inputs.Image(type='pil', label="Original Image")
|
| 85 |
#depth = gr.outputs.Image(type="pil",label="Output Depth")
|
|
@@ -97,5 +97,5 @@ examples = [
|
|
| 97 |
gr.Interface(
|
| 98 |
depth_normal,
|
| 99 |
inputs=[gr.Image(type='pil', label="Original Image")],
|
| 100 |
-
outputs=[gr.Image(type="pil",label="Output Depth")],
|
| 101 |
title=title, description=description, article=article, examples=examples, analytics_enabled=False).launch()
|
|
|
|
| 79 |
##formatted = (output * 255 / np.max(output)).astype('uint8')
|
| 80 |
img = Image.fromarray(pred_color)
|
| 81 |
img_normal = Image.fromarray(pred_color_normal)
|
| 82 |
+
return img, img_normal
|
| 83 |
|
| 84 |
#inputs = gr.inputs.Image(type='pil', label="Original Image")
|
| 85 |
#depth = gr.outputs.Image(type="pil",label="Output Depth")
|
|
|
|
| 97 |
gr.Interface(
|
| 98 |
depth_normal,
|
| 99 |
inputs=[gr.Image(type='pil', label="Original Image")],
|
| 100 |
+
outputs=[gr.Image(type="pil",label="Output Depth"), gr.Image(type="pil",label="Output Normal")],
|
| 101 |
title=title, description=description, article=article, examples=examples, analytics_enabled=False).launch()
|