Spaces:
Running
on
Zero
Running
on
Zero
guangkaixu
commited on
Commit
•
6b80964
1
Parent(s):
602bf69
Update app.py
Browse files
app.py
CHANGED
@@ -331,9 +331,10 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis):
|
|
331 |
interactive=False,
|
332 |
)
|
333 |
|
334 |
-
filenames = [
|
335 |
-
|
336 |
example_folder = "images"
|
|
|
337 |
# example_folder = os.path.join(os.path.dirname(__file__), "images")
|
338 |
|
339 |
Examples(
|
@@ -344,10 +345,10 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis):
|
|
344 |
],
|
345 |
inputs=[normal_image_input],
|
346 |
outputs=[normal_image_output, normal_image_output_files],
|
347 |
-
cache_examples=True,
|
348 |
# directory_name="examples_normal",
|
349 |
directory_name="images_cache",
|
350 |
-
|
351 |
)
|
352 |
|
353 |
|
@@ -392,7 +393,7 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis):
|
|
392 |
filenames = []
|
393 |
filenames.extend(["dis_%d.jpg" %(i+1) for i in range(10)])
|
394 |
example_folder = "images"
|
395 |
-
print('line 396', __file__)
|
396 |
# example_folder = os.path.join(os.path.dirname(__file__), "images")
|
397 |
# print(example_folder)
|
398 |
Examples(
|
@@ -403,9 +404,9 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis):
|
|
403 |
],
|
404 |
inputs=[dis_image_input],
|
405 |
outputs=[dis_image_output, dis_image_output_files],
|
406 |
-
cache_examples=True,
|
407 |
directory_name="images_cache",
|
408 |
-
|
409 |
)
|
410 |
|
411 |
|
|
|
331 |
interactive=False,
|
332 |
)
|
333 |
|
334 |
+
filenames = []
|
335 |
+
filenames.extend(["normal_%d.jpg" %(i+1) for i in range(10)])
|
336 |
example_folder = "images"
|
337 |
+
print(os.path.join(example_folder, '1.jpg'))
|
338 |
# example_folder = os.path.join(os.path.dirname(__file__), "images")
|
339 |
|
340 |
Examples(
|
|
|
345 |
],
|
346 |
inputs=[normal_image_input],
|
347 |
outputs=[normal_image_output, normal_image_output_files],
|
348 |
+
# cache_examples=True,
|
349 |
# directory_name="examples_normal",
|
350 |
directory_name="images_cache",
|
351 |
+
cache_examples=False,
|
352 |
)
|
353 |
|
354 |
|
|
|
393 |
filenames = []
|
394 |
filenames.extend(["dis_%d.jpg" %(i+1) for i in range(10)])
|
395 |
example_folder = "images"
|
396 |
+
# print('line 396', __file__)
|
397 |
# example_folder = os.path.join(os.path.dirname(__file__), "images")
|
398 |
# print(example_folder)
|
399 |
Examples(
|
|
|
404 |
],
|
405 |
inputs=[dis_image_input],
|
406 |
outputs=[dis_image_output, dis_image_output_files],
|
407 |
+
# cache_examples=True,
|
408 |
directory_name="images_cache",
|
409 |
+
cache_examples=False,
|
410 |
)
|
411 |
|
412 |
|