Spaces:
Runtime error
Runtime error
turn-the-cam-anonymous
commited on
Commit
•
f7f7d9b
1
Parent(s):
0f1946e
small updates
Browse files
run.ipynb
CHANGED
@@ -1,18 +1,8 @@
|
|
1 |
{
|
2 |
"cells": [
|
3 |
-
{
|
4 |
-
"cell_type": "markdown",
|
5 |
-
"id": 3.0293430767166755e+38,
|
6 |
-
"metadata": {
|
7 |
-
"id": 3.0293430767166755e+38
|
8 |
-
},
|
9 |
-
"source": [
|
10 |
-
"# Gradio Demo: blocks_flipper"
|
11 |
-
]
|
12 |
-
},
|
13 |
{
|
14 |
"cell_type": "code",
|
15 |
-
"execution_count":
|
16 |
"id": 2.8891853944186117e+38,
|
17 |
"metadata": {
|
18 |
"colab": {
|
@@ -28,7 +18,7 @@
|
|
28 |
"name": "stdout",
|
29 |
"output_type": "stream",
|
30 |
"text": [
|
31 |
-
"Running on local URL: http://127.0.0.1:
|
32 |
"\n",
|
33 |
"To create a public link, set `share=True` in `launch()`.\n"
|
34 |
]
|
@@ -36,7 +26,7 @@
|
|
36 |
{
|
37 |
"data": {
|
38 |
"text/html": [
|
39 |
-
"<div><iframe src=\"http://127.0.0.1:
|
40 |
],
|
41 |
"text/plain": [
|
42 |
"<IPython.core.display.HTML object>"
|
@@ -86,6 +76,7 @@
|
|
86 |
" with gr.Row():\n",
|
87 |
" with gr.Column(scale=1):\n",
|
88 |
" default_input_image = Image.open( os.path.join('online_demo', 'nerf_wild', 'step-100_scale-6.0', 'car1.png'))\n",
|
|
|
89 |
" input_image = gr.Image(default_input_image, shape=[256, 256])\n",
|
90 |
" options = sorted(next(os.walk('online_demo/nerf_wild/step-100_scale-6.0'))[1])\n",
|
91 |
" img_id = gr.Dropdown(options, value='car1', label='options')\n",
|
@@ -109,6 +100,7 @@
|
|
109 |
" with gr.Row():\n",
|
110 |
" with gr.Column(scale=1):\n",
|
111 |
" default_input_image = Image.open( os.path.join('online_demo', 'GSO', 'step-100_scale-6.0', 'SAMBA_HEMP', 'input.png'))\n",
|
|
|
112 |
" input_image = gr.Image(default_input_image, shape=[256, 256])\n",
|
113 |
" options = sorted(os.listdir('online_demo/GSO/step-100_scale-6.0'))\n",
|
114 |
" img_id = gr.Dropdown(options, value='SAMBA_HEMP', label='options')\n",
|
@@ -132,6 +124,7 @@
|
|
132 |
" with gr.Row():\n",
|
133 |
" with gr.Column(scale=1):\n",
|
134 |
" default_input_image = Image.open( os.path.join('online_demo', 'RTMV', 'step-100_scale-6.0', '00000', 'input.png'))\n",
|
|
|
135 |
" input_image = gr.Image(default_input_image, shape=[256, 256])\n",
|
136 |
" options = sorted(os.listdir('online_demo/RTMV/step-100_scale-6.0'))\n",
|
137 |
" img_id = gr.Dropdown(options, value='00000', label='options')\n",
|
|
|
1 |
{
|
2 |
"cells": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": 1,
|
6 |
"id": 2.8891853944186117e+38,
|
7 |
"metadata": {
|
8 |
"colab": {
|
|
|
18 |
"name": "stdout",
|
19 |
"output_type": "stream",
|
20 |
"text": [
|
21 |
+
"Running on local URL: http://127.0.0.1:7860\n",
|
22 |
"\n",
|
23 |
"To create a public link, set `share=True` in `launch()`.\n"
|
24 |
]
|
|
|
26 |
{
|
27 |
"data": {
|
28 |
"text/html": [
|
29 |
+
"<div><iframe src=\"http://127.0.0.1:7860/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
30 |
],
|
31 |
"text/plain": [
|
32 |
"<IPython.core.display.HTML object>"
|
|
|
76 |
" with gr.Row():\n",
|
77 |
" with gr.Column(scale=1):\n",
|
78 |
" default_input_image = Image.open( os.path.join('online_demo', 'nerf_wild', 'step-100_scale-6.0', 'car1.png'))\n",
|
79 |
+
" default_input_image.thumbnail([256, 256], Image.Resampling.LANCZOS) \n",
|
80 |
" input_image = gr.Image(default_input_image, shape=[256, 256])\n",
|
81 |
" options = sorted(next(os.walk('online_demo/nerf_wild/step-100_scale-6.0'))[1])\n",
|
82 |
" img_id = gr.Dropdown(options, value='car1', label='options')\n",
|
|
|
100 |
" with gr.Row():\n",
|
101 |
" with gr.Column(scale=1):\n",
|
102 |
" default_input_image = Image.open( os.path.join('online_demo', 'GSO', 'step-100_scale-6.0', 'SAMBA_HEMP', 'input.png'))\n",
|
103 |
+
" default_input_image.thumbnail([256, 256], Image.Resampling.LANCZOS) \n",
|
104 |
" input_image = gr.Image(default_input_image, shape=[256, 256])\n",
|
105 |
" options = sorted(os.listdir('online_demo/GSO/step-100_scale-6.0'))\n",
|
106 |
" img_id = gr.Dropdown(options, value='SAMBA_HEMP', label='options')\n",
|
|
|
124 |
" with gr.Row():\n",
|
125 |
" with gr.Column(scale=1):\n",
|
126 |
" default_input_image = Image.open( os.path.join('online_demo', 'RTMV', 'step-100_scale-6.0', '00000', 'input.png'))\n",
|
127 |
+
" default_input_image.thumbnail([256, 256], Image.Resampling.LANCZOS) \n",
|
128 |
" input_image = gr.Image(default_input_image, shape=[256, 256])\n",
|
129 |
" options = sorted(os.listdir('online_demo/RTMV/step-100_scale-6.0'))\n",
|
130 |
" img_id = gr.Dropdown(options, value='00000', label='options')\n",
|