ruili3 commited on
Commit
80ec9e5
·
1 Parent(s): 42e821c

adjust font

Browse files
Files changed (1) hide show
  1. app.py +60 -21
app.py CHANGED
@@ -167,24 +167,63 @@ with gradio.Blocks(
167
  title="LaRI Demo",
168
  ) as demo:
169
 
170
- gradio.Markdown(
171
- "<h1 style='text-align: center;'>LaRI: Layered Ray Intersections for Single-view 3D Geometric Reasoning</h1>",
172
- elem_id="title",
173
- )
 
174
 
175
- gradio.Markdown(
 
 
 
 
176
  """
177
- This is the official demo of Layered Ray Intersection (<a href="https://ruili3.github.io/lari/index.html" target="_blank" style="color: #2a9d8f;">LaRI</a>). For a quick start, click the images in 'Examples' and then click the 'Process' Button.
 
 
 
 
178
 
179
- You can try with your own images with following steps:
180
- - Load an image;
181
- - Click the 'Process' button;
182
- - Browse layered depth maps (z-channel of the resulting LaRI point map) by tunning 'Layer ID';
183
 
184
- Note that in '3D Point Cloud', different color denotes diffrent intersection layers, i.e., <b style="color: #FFBD1C;">layer 1</b>, <b style="color: #FB5607;">layer 2</b>, <b style="color: #F15BB5;">layer 3</b>, <b style="color: #8338EC;">layer 4</b>.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  """
186
  )
187
 
 
 
188
  # , <b style="color: #3A86FF;">layer 5</b>.
189
  lari_map = gradio.State(None)
190
  valid_mask = gradio.State(None)
@@ -265,16 +304,16 @@ with gradio.Blocks(
265
  outputs=depth_output,
266
  )
267
 
268
- gradio.Examples(examples=["assets/cole_hardware.png",
269
- "assets/3m_tape.png",
270
- "assets/horse.png",
271
- "assets/rhino.png",
272
- "assets/alphabet.png",
273
- "assets/martin_wedge.png",
274
- "assets/d_rose.png",
275
- "assets/ace.png",
276
- "assets/bifidus.png",
277
- "assets/fem.png",
278
  ],
279
  inputs=image_input)
280
 
 
167
  title="LaRI Demo",
168
  ) as demo:
169
 
170
+ # gradio.Markdown(
171
+ # "<h1 style='text-align: center;'>LaRI: Layered Ray Intersections for Single-view 3D Geometric Reasoning</h1>",
172
+ # elem_id="title",
173
+ # )
174
+
175
 
176
+ gradio.HTML(
177
+ """
178
+ <h1 style="text-align: center; font-size: 28px; font-weight: bold; margin-bottom: 1em;">
179
+ LaRI: Layered Ray Intersections for Single-view 3D Geometric Reasoning
180
+ </h1>
181
  """
182
+ )
183
+
184
+ # gradio.Markdown(
185
+ # """
186
+ # This is the official demo of Layered Ray Intersection (<a href="https://ruili3.github.io/lari/index.html" target="_blank" style="color: #2a9d8f;">LaRI</a>). For a quick start, click the images in 'Examples' and then click the 'Process' Button.
187
 
188
+ # You can try with your own images with following steps:
189
+ # - Load an image;
190
+ # - Click the 'Process' button;
191
+ # - Browse layered depth maps (z-channel of the resulting LaRI point map) by tunning 'Layer ID';
192
 
193
+ # Note that in '3D Point Cloud', different color denotes diffrent intersection layers, i.e., <b style="color: #FFBD1C;">layer 1</b>, <b style="color: #FB5607;">layer 2</b>, <b style="color: #F15BB5;">layer 3</b>, <b style="color: #8338EC;">layer 4</b>.
194
+ # """
195
+ # )
196
+
197
+
198
+ gradio.HTML(
199
+ """
200
+ <p style="font-size: 16px; line-height: 1.6;">
201
+ This is the official demo of Layered Ray Intersection
202
+ (<a href="https://ruili3.github.io/lari/index.html" target="_blank" style="color: #2a9d8f; font-weight: bold;">LaRI</a>).
203
+ For a quick start, click the images in 'Examples' and then click the 'Process' Button.
204
+ </p>
205
+
206
+ <p style="font-size: 16px; line-height: 1.6;">
207
+ You can try with your own images with the following steps:
208
+ <ul>
209
+ <li>Load an image</li>
210
+ <li>Click the 'Process' button</li>
211
+ <li>Browse layered depth maps (z-channel of the resulting LaRI point map) by tuning 'Layer ID'</li>
212
+ </ul>
213
+ </p>
214
+
215
+ <p style="font-size: 16px; line-height: 1.6;">
216
+ Note that in <b>3D Point Cloud</b>, different colors denote different intersection layers:
217
+ <span style="color: #FFBD1C;"><b>Layer 1</b></span>,
218
+ <span style="color: #FB5607;"><b>Layer 2</b></span>,
219
+ <span style="color: #F15BB5;"><b>Layer 3</b></span>,
220
+ <span style="color: #8338EC;"><b>Layer 4</b></span>.
221
+ </p>
222
  """
223
  )
224
 
225
+
226
+
227
  # , <b style="color: #3A86FF;">layer 5</b>.
228
  lari_map = gradio.State(None)
229
  valid_mask = gradio.State(None)
 
304
  outputs=depth_output,
305
  )
306
 
307
+ gradio.Examples(examples=["./assets/cole_hardware.png",
308
+ "./assets/3m_tape.png",
309
+ "./assets/horse.png",
310
+ "./assets/rhino.png",
311
+ "./assets/alphabet.png",
312
+ "./assets/martin_wedge.png",
313
+ "./assets/d_rose.png",
314
+ "./assets/ace.png",
315
+ "./assets/bifidus.png",
316
+ "./assets/fem.png",
317
  ],
318
  inputs=image_input)
319