Spaces:
Sleeping
Sleeping
pablovela5620
commited on
Commit
•
0e99e24
1
Parent(s):
5860b62
examples caching breaks streaming
Browse files- pixi.lock +0 -7
- pixi.toml +1 -1
- tools/app.py +4 -11
pixi.lock
CHANGED
@@ -366,7 +366,6 @@ environments:
|
|
366 |
- pypi: https://files.pythonhosted.org/packages/0b/8f/1493035518f57e71771cec5c8df06b3aa152a55fda88fdde6b6c0ca00b50/gradio_rerun-0.0.3-py3-none-any.whl
|
367 |
- pypi: https://files.pythonhosted.org/packages/11/4b/a6e4922029d8bd89e637c62f90a50a85add9ebdc5be65154956a7c2b82a1/grpcio-1.64.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
368 |
- pypi: https://files.pythonhosted.org/packages/95/04/ff642e65ad6b90db43e668d70ffb6736436c7ce41fcc549f4e9472234127/h11-0.14.0-py3-none-any.whl
|
369 |
-
- pypi: https://files.pythonhosted.org/packages/fa/92/4419c2faabb720f25f339a25f0c6e77412b6efbe3152c4e0bcfb436c3192/hf_transfer-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
370 |
- pypi: https://files.pythonhosted.org/packages/78/d4/e5d7e4f2174f8a4d63c8897d79eb8fe2503f7ecc03282fee1fa2719c2704/httpcore-1.0.5-py3-none-any.whl
|
371 |
- pypi: https://files.pythonhosted.org/packages/59/23/047a89e66045232fb82c50ae57699e40f70e073ae5ccd53f54e532fbd2a2/httptools-0.6.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
372 |
- pypi: https://files.pythonhosted.org/packages/41/7b/ddacf6dcebb42466abd03f368782142baa82e08fc0c1f8eaa05b4bae87d5/httpx-0.27.0-py3-none-any.whl
|
@@ -2676,12 +2675,6 @@ packages:
|
|
2676 |
purls: []
|
2677 |
size: 1598244
|
2678 |
timestamp: 1715701061364
|
2679 |
-
- kind: pypi
|
2680 |
-
name: hf-transfer
|
2681 |
-
version: 0.1.6
|
2682 |
-
url: https://files.pythonhosted.org/packages/fa/92/4419c2faabb720f25f339a25f0c6e77412b6efbe3152c4e0bcfb436c3192/hf_transfer-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
2683 |
-
sha256: 4282f09902114cd67fca98a1a1bad569a44521a8395fedf327e966714f68b977
|
2684 |
-
requires_python: '>=3.7'
|
2685 |
- kind: pypi
|
2686 |
name: httpcore
|
2687 |
version: 1.0.5
|
|
|
366 |
- pypi: https://files.pythonhosted.org/packages/0b/8f/1493035518f57e71771cec5c8df06b3aa152a55fda88fdde6b6c0ca00b50/gradio_rerun-0.0.3-py3-none-any.whl
|
367 |
- pypi: https://files.pythonhosted.org/packages/11/4b/a6e4922029d8bd89e637c62f90a50a85add9ebdc5be65154956a7c2b82a1/grpcio-1.64.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
368 |
- pypi: https://files.pythonhosted.org/packages/95/04/ff642e65ad6b90db43e668d70ffb6736436c7ce41fcc549f4e9472234127/h11-0.14.0-py3-none-any.whl
|
|
|
369 |
- pypi: https://files.pythonhosted.org/packages/78/d4/e5d7e4f2174f8a4d63c8897d79eb8fe2503f7ecc03282fee1fa2719c2704/httpcore-1.0.5-py3-none-any.whl
|
370 |
- pypi: https://files.pythonhosted.org/packages/59/23/047a89e66045232fb82c50ae57699e40f70e073ae5ccd53f54e532fbd2a2/httptools-0.6.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
371 |
- pypi: https://files.pythonhosted.org/packages/41/7b/ddacf6dcebb42466abd03f368782142baa82e08fc0c1f8eaa05b4bae87d5/httpx-0.27.0-py3-none-any.whl
|
|
|
2675 |
purls: []
|
2676 |
size: 1598244
|
2677 |
timestamp: 1715701061364
|
|
|
|
|
|
|
|
|
|
|
|
|
2678 |
- kind: pypi
|
2679 |
name: httpcore
|
2680 |
version: 1.0.5
|
pixi.toml
CHANGED
@@ -44,7 +44,7 @@ app = {cmd="python tools/app.py", depends_on=["post-install"]}
|
|
44 |
|
45 |
# Docker tasks
|
46 |
docker-build = "docker build --no-cache -t mini-dpvo ."
|
47 |
-
docker-run =
|
48 |
|
49 |
[dependencies]
|
50 |
python = "3.11.*"
|
|
|
44 |
|
45 |
# Docker tasks
|
46 |
docker-build = "docker build --no-cache -t mini-dpvo ."
|
47 |
+
docker-run = "docker run --gpus all -it -p 7860:7860 mini-dpvo"
|
48 |
|
49 |
[dependencies]
|
50 |
python = "3.11.*"
|
tools/app.py
CHANGED
@@ -43,8 +43,6 @@ if gr.NO_RELOAD:
|
|
43 |
@dataclass
|
44 |
class GradioDPVOConfig:
|
45 |
share: bool = False
|
46 |
-
port: int = 7860
|
47 |
-
server_name: str = "0.0.0.0"
|
48 |
|
49 |
|
50 |
@rr.thread_local_stream("mini_dpvo")
|
@@ -147,7 +145,7 @@ def on_file_upload(video_file_path: str) -> None:
|
|
147 |
return video_info
|
148 |
|
149 |
|
150 |
-
def main(gradio_config: GradioDPVOConfig
|
151 |
with gr.Blocks(
|
152 |
css=""".gradio-container {margin: 0 !important; min-width: 100%};""",
|
153 |
title="Mini-DPVO Demo",
|
@@ -219,6 +217,7 @@ def main(gradio_config: GradioDPVOConfig | None = None):
|
|
219 |
inputs=[video_input, jpg_quality, stride, skip, config_type],
|
220 |
outputs=[rr_viewer],
|
221 |
fn=run_dpvo,
|
|
|
222 |
)
|
223 |
|
224 |
click_event = start_btn.click(
|
@@ -238,14 +237,8 @@ def main(gradio_config: GradioDPVOConfig | None = None):
|
|
238 |
fn=on_file_upload, inputs=[video_input], outputs=[video_info]
|
239 |
)
|
240 |
|
241 |
-
demo.launch(
|
242 |
-
# share=gradio_config.share,
|
243 |
-
# server_name=gradio_config.server_name,
|
244 |
-
# server_port=gradio_config.port,
|
245 |
-
)
|
246 |
|
247 |
|
248 |
if __name__ == "__main__":
|
249 |
-
main(
|
250 |
-
# tyro.cli(GradioDPVOConfig)
|
251 |
-
)
|
|
|
43 |
@dataclass
|
44 |
class GradioDPVOConfig:
|
45 |
share: bool = False
|
|
|
|
|
46 |
|
47 |
|
48 |
@rr.thread_local_stream("mini_dpvo")
|
|
|
145 |
return video_info
|
146 |
|
147 |
|
148 |
+
def main(gradio_config: GradioDPVOConfig):
|
149 |
with gr.Blocks(
|
150 |
css=""".gradio-container {margin: 0 !important; min-width: 100%};""",
|
151 |
title="Mini-DPVO Demo",
|
|
|
217 |
inputs=[video_input, jpg_quality, stride, skip, config_type],
|
218 |
outputs=[rr_viewer],
|
219 |
fn=run_dpvo,
|
220 |
+
cache_examples=False,
|
221 |
)
|
222 |
|
223 |
click_event = start_btn.click(
|
|
|
237 |
fn=on_file_upload, inputs=[video_input], outputs=[video_info]
|
238 |
)
|
239 |
|
240 |
+
demo.launch(share=gradio_config.share)
|
|
|
|
|
|
|
|
|
241 |
|
242 |
|
243 |
if __name__ == "__main__":
|
244 |
+
main(tyro.cli(GradioDPVOConfig))
|
|
|
|