Spaces:
Running
on
Zero
Running
on
Zero
adjust examples
Browse files- .gradio/cached_examples/{examples_video โ 14}/Generated Depth Video/4af7db82fa84bd9e40e4/horse_depth_colored.mp4 +0 -0
- .gradio/cached_examples/{examples_video โ 14}/Generated Depth Video/4e1933c53ce6c8430349/walking_depth_colored.mp4 +0 -0
- .gradio/cached_examples/{examples_video โ 14}/Generated Depth Video/5f3610b4ebaa6b9eb736/gokart_depth_colored.mp4 +0 -0
- .gradio/cached_examples/{examples_video โ 14}/Preprocessed video/15b5cb7fff54245476a1/horse_depth_input.mp4 +0 -0
- .gradio/cached_examples/{examples_video โ 14}/Preprocessed video/70d664d4051498fb4a7e/walking_depth_input.mp4 +0 -0
- .gradio/cached_examples/{examples_video โ 14}/Preprocessed video/7f8ff10ad824469dfd1e/gokart_depth_input.mp4 +0 -0
- .gradio/cached_examples/{examples_video โ 14}/log.csv +0 -0
- app.py +1 -3
- gradio_patches/examples.py +0 -13
.gradio/cached_examples/{examples_video โ 14}/Generated Depth Video/4af7db82fa84bd9e40e4/horse_depth_colored.mp4
RENAMED
|
File without changes
|
.gradio/cached_examples/{examples_video โ 14}/Generated Depth Video/4e1933c53ce6c8430349/walking_depth_colored.mp4
RENAMED
|
File without changes
|
.gradio/cached_examples/{examples_video โ 14}/Generated Depth Video/5f3610b4ebaa6b9eb736/gokart_depth_colored.mp4
RENAMED
|
File without changes
|
.gradio/cached_examples/{examples_video โ 14}/Preprocessed video/15b5cb7fff54245476a1/horse_depth_input.mp4
RENAMED
|
File without changes
|
.gradio/cached_examples/{examples_video โ 14}/Preprocessed video/70d664d4051498fb4a7e/walking_depth_input.mp4
RENAMED
|
File without changes
|
.gradio/cached_examples/{examples_video โ 14}/Preprocessed video/7f8ff10ad824469dfd1e/gokart_depth_input.mp4
RENAMED
|
File without changes
|
.gradio/cached_examples/{examples_video โ 14}/log.csv
RENAMED
|
File without changes
|
app.py
CHANGED
|
@@ -32,7 +32,6 @@ import einops
|
|
| 32 |
|
| 33 |
from huggingface_hub import login
|
| 34 |
|
| 35 |
-
from gradio_patches.examples import Examples
|
| 36 |
from colorize import colorize_depth_multi_thread
|
| 37 |
from video_io import get_video_fps, write_video_from_numpy
|
| 38 |
|
|
@@ -203,7 +202,7 @@ def run_demo_server(pipe, device):
|
|
| 203 |
with gr.Column(scale=2):
|
| 204 |
pass
|
| 205 |
|
| 206 |
-
Examples(
|
| 207 |
examples=[
|
| 208 |
["files/gokart.mp4"],
|
| 209 |
["files/horse.mp4"],
|
|
@@ -213,7 +212,6 @@ def run_demo_server(pipe, device):
|
|
| 213 |
outputs=[output_video_1, output_video_2],
|
| 214 |
fn=process_pipe,
|
| 215 |
cache_examples=True,
|
| 216 |
-
directory_name="examples_video",
|
| 217 |
)
|
| 218 |
|
| 219 |
generate_btn.click(
|
|
|
|
| 32 |
|
| 33 |
from huggingface_hub import login
|
| 34 |
|
|
|
|
| 35 |
from colorize import colorize_depth_multi_thread
|
| 36 |
from video_io import get_video_fps, write_video_from_numpy
|
| 37 |
|
|
|
|
| 202 |
with gr.Column(scale=2):
|
| 203 |
pass
|
| 204 |
|
| 205 |
+
gr.Examples(
|
| 206 |
examples=[
|
| 207 |
["files/gokart.mp4"],
|
| 208 |
["files/horse.mp4"],
|
|
|
|
| 212 |
outputs=[output_video_1, output_video_2],
|
| 213 |
fn=process_pipe,
|
| 214 |
cache_examples=True,
|
|
|
|
| 215 |
)
|
| 216 |
|
| 217 |
generate_btn.click(
|
gradio_patches/examples.py
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
from pathlib import Path
|
| 2 |
-
|
| 3 |
-
import gradio
|
| 4 |
-
from gradio.utils import get_cache_folder
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
class Examples(gradio.helpers.Examples):
|
| 8 |
-
def __init__(self, *args, directory_name=None, **kwargs):
|
| 9 |
-
super().__init__(*args, **kwargs, _initiated_directly=False)
|
| 10 |
-
if directory_name is not None:
|
| 11 |
-
self.cached_folder = get_cache_folder() / directory_name
|
| 12 |
-
self.cached_file = Path(self.cached_folder) / "log.csv"
|
| 13 |
-
self.create()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|