Spaces:
Runtime error
Runtime error
Commit
·
dc98eac
1
Parent(s):
5e84664
Add acknowledgement for LiheYoung/Depth-Anything demo
Browse files
app.py
CHANGED
|
@@ -45,6 +45,7 @@ print("== Loaded checkpoint '{}'".format('checkpoints/nyu_L.pth'))
|
|
| 45 |
title = "# IEBins: Iterative Elastic Bins for Monocular Depth Estimation"
|
| 46 |
description = """Demo for **IEBins: Iterative Elastic Bins for Monocular Depth Estimation**.
|
| 47 |
Please refer to the [paper](https://arxiv.org/abs/2309.14137), [github](https://github.com/ShuweiShao/IEBins), or [poster](https://nips.cc/media/PosterPDFs/NeurIPS%202023/70695.png?t=1701662442.5228624) for more details."""
|
|
|
|
| 48 |
|
| 49 |
transform = Compose([
|
| 50 |
Resize(
|
|
@@ -118,6 +119,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 118 |
for filename in example_files]
|
| 119 |
examples = gr.Examples(examples=example_files, inputs=[input_image], outputs=[
|
| 120 |
depth_image_slider, raw_file], fn=on_submit, cache_examples=False)
|
|
|
|
| 121 |
|
| 122 |
|
| 123 |
if __name__ == '__main__':
|
|
|
|
| 45 |
title = "# IEBins: Iterative Elastic Bins for Monocular Depth Estimation"
|
| 46 |
description = """Demo for **IEBins: Iterative Elastic Bins for Monocular Depth Estimation**.
|
| 47 |
Please refer to the [paper](https://arxiv.org/abs/2309.14137), [github](https://github.com/ShuweiShao/IEBins), or [poster](https://nips.cc/media/PosterPDFs/NeurIPS%202023/70695.png?t=1701662442.5228624) for more details."""
|
| 48 |
+
acknowledgement = """This demo is heavily based on [LiheYoung/Depth-Anything](https://huggingface.co/spaces/LiheYoung/Depth-Anything). I'm learning how to use Gradio and this is my first demo. I'm still working on improving the performance of this demo. Any suggestions are welcome!"""
|
| 49 |
|
| 50 |
transform = Compose([
|
| 51 |
Resize(
|
|
|
|
| 119 |
for filename in example_files]
|
| 120 |
examples = gr.Examples(examples=example_files, inputs=[input_image], outputs=[
|
| 121 |
depth_image_slider, raw_file], fn=on_submit, cache_examples=False)
|
| 122 |
+
gr.Markdown(acknowledgement)
|
| 123 |
|
| 124 |
|
| 125 |
if __name__ == '__main__':
|