atatakun commited on
Commit
a8cd162
1 Parent(s): bacbc79

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -228,6 +228,7 @@ with block:
228
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
229
  run_button.click(fn=canny, inputs=[input_image, resolution, low_threshold, high_threshold], outputs=[gallery])
230
 
 
231
  with gr.Row():
232
  gr.Markdown("## HED Edge "SoftEdge"")
233
  with gr.Row():
@@ -239,6 +240,7 @@ with block:
239
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
240
  run_button.click(fn=hed, inputs=[input_image, resolution], outputs=[gallery])
241
 
 
242
  with gr.Row():
243
  gr.Markdown("## Pidi Edge "SoftEdge"")
244
  with gr.Row():
@@ -250,6 +252,7 @@ with block:
250
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
251
  run_button.click(fn=pidi, inputs=[input_image, resolution], outputs=[gallery])
252
 
 
253
  with gr.Row():
254
  gr.Markdown("## MLSD Edge")
255
  with gr.Row():
@@ -263,6 +266,7 @@ with block:
263
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
264
  run_button.click(fn=mlsd, inputs=[input_image, resolution, value_threshold, distance_threshold], outputs=[gallery])
265
 
 
266
  with gr.Row():
267
  gr.Markdown("## MIDAS Depth")
268
  with gr.Row():
@@ -275,6 +279,7 @@ with block:
275
  run_button.click(fn=midas, inputs=[input_image, resolution], outputs=[gallery])
276
 
277
 
 
278
  with gr.Row():
279
  gr.Markdown("## Zoe Depth")
280
  with gr.Row():
@@ -286,6 +291,7 @@ with block:
286
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
287
  run_button.click(fn=zoe, inputs=[input_image, resolution], outputs=[gallery])
288
 
 
289
  with gr.Row():
290
  gr.Markdown("## Normal Bae")
291
  with gr.Row():
@@ -297,6 +303,7 @@ with block:
297
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
298
  run_button.click(fn=normalbae, inputs=[input_image, resolution], outputs=[gallery])
299
 
 
300
  with gr.Row():
301
  gr.Markdown("## Openpose")
302
  with gr.Row():
@@ -309,6 +316,7 @@ with block:
309
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
310
  run_button.click(fn=openpose, inputs=[input_image, resolution, hand_and_face], outputs=[gallery])
311
 
 
312
  with gr.Row():
313
  gr.Markdown("## Lineart Anime \n<p>Check Invert to use with Mochi Diffusion.")
314
  with gr.Row():
@@ -321,6 +329,7 @@ with block:
321
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
322
  run_button.click(fn=lineart_anime, inputs=[input_image, resolution, invert], outputs=[gallery])
323
 
 
324
  with gr.Row():
325
  gr.Markdown("## Lineart \n<p>Check Invert to use with Mochi Diffusion.")
326
  with gr.Row():
@@ -345,6 +354,7 @@ with block:
345
  # gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
346
  # run_button.click(fn=uniformer, inputs=[input_image, resolution], outputs=[gallery])
347
 
 
348
  with gr.Row():
349
  gr.Markdown("## Oneformer COCO Segmentation")
350
  with gr.Row():
@@ -356,6 +366,7 @@ with block:
356
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
357
  run_button.click(fn=oneformer_coco, inputs=[input_image, resolution], outputs=[gallery])
358
 
 
359
  with gr.Row():
360
  gr.Markdown("## Oneformer ADE20K Segmentation")
361
  with gr.Row():
@@ -367,6 +378,7 @@ with block:
367
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
368
  run_button.click(fn=oneformer_ade20k, inputs=[input_image, resolution], outputs=[gallery])
369
 
 
370
  with gr.Row():
371
  gr.Markdown("## Content Shuffle")
372
  with gr.Row():
@@ -378,6 +390,7 @@ with block:
378
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
379
  run_button.click(fn=content_shuffler, inputs=[input_image, resolution], outputs=[gallery])
380
 
 
381
  with gr.Row():
382
  gr.Markdown("## Color Shuffle")
383
  with gr.Row():
 
228
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
229
  run_button.click(fn=canny, inputs=[input_image, resolution, low_threshold, high_threshold], outputs=[gallery])
230
 
231
+ gr.Markdown("<hr>")
232
  with gr.Row():
233
  gr.Markdown("## HED Edge&nbsp;&quot;SoftEdge&quot;")
234
  with gr.Row():
 
240
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
241
  run_button.click(fn=hed, inputs=[input_image, resolution], outputs=[gallery])
242
 
243
+ gr.Markdown("<hr>")
244
  with gr.Row():
245
  gr.Markdown("## Pidi Edge&nbsp;&quot;SoftEdge&quot;")
246
  with gr.Row():
 
252
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
253
  run_button.click(fn=pidi, inputs=[input_image, resolution], outputs=[gallery])
254
 
255
+ gr.Markdown("<hr>")
256
  with gr.Row():
257
  gr.Markdown("## MLSD Edge")
258
  with gr.Row():
 
266
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
267
  run_button.click(fn=mlsd, inputs=[input_image, resolution, value_threshold, distance_threshold], outputs=[gallery])
268
 
269
+ gr.Markdown("<hr>")
270
  with gr.Row():
271
  gr.Markdown("## MIDAS Depth")
272
  with gr.Row():
 
279
  run_button.click(fn=midas, inputs=[input_image, resolution], outputs=[gallery])
280
 
281
 
282
+ gr.Markdown("<hr>")
283
  with gr.Row():
284
  gr.Markdown("## Zoe Depth")
285
  with gr.Row():
 
291
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
292
  run_button.click(fn=zoe, inputs=[input_image, resolution], outputs=[gallery])
293
 
294
+ gr.Markdown("<hr>")
295
  with gr.Row():
296
  gr.Markdown("## Normal Bae")
297
  with gr.Row():
 
303
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
304
  run_button.click(fn=normalbae, inputs=[input_image, resolution], outputs=[gallery])
305
 
306
+ gr.Markdown("<hr>")
307
  with gr.Row():
308
  gr.Markdown("## Openpose")
309
  with gr.Row():
 
316
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
317
  run_button.click(fn=openpose, inputs=[input_image, resolution, hand_and_face], outputs=[gallery])
318
 
319
+ gr.Markdown("<hr>")
320
  with gr.Row():
321
  gr.Markdown("## Lineart Anime \n<p>Check Invert to use with Mochi Diffusion.")
322
  with gr.Row():
 
329
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
330
  run_button.click(fn=lineart_anime, inputs=[input_image, resolution, invert], outputs=[gallery])
331
 
332
+ gr.Markdown("<hr>")
333
  with gr.Row():
334
  gr.Markdown("## Lineart \n<p>Check Invert to use with Mochi Diffusion.")
335
  with gr.Row():
 
354
  # gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
355
  # run_button.click(fn=uniformer, inputs=[input_image, resolution], outputs=[gallery])
356
 
357
+ gr.Markdown("<hr>")
358
  with gr.Row():
359
  gr.Markdown("## Oneformer COCO Segmentation")
360
  with gr.Row():
 
366
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
367
  run_button.click(fn=oneformer_coco, inputs=[input_image, resolution], outputs=[gallery])
368
 
369
+ gr.Markdown("<hr>")
370
  with gr.Row():
371
  gr.Markdown("## Oneformer ADE20K Segmentation")
372
  with gr.Row():
 
378
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
379
  run_button.click(fn=oneformer_ade20k, inputs=[input_image, resolution], outputs=[gallery])
380
 
381
+ gr.Markdown("<hr>")
382
  with gr.Row():
383
  gr.Markdown("## Content Shuffle")
384
  with gr.Row():
 
390
  gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
391
  run_button.click(fn=content_shuffler, inputs=[input_image, resolution], outputs=[gallery])
392
 
393
+ gr.Markdown("<hr>")
394
  with gr.Row():
395
  gr.Markdown("## Color Shuffle")
396
  with gr.Row():