Update app.py
Browse files
app.py
CHANGED
|
@@ -250,7 +250,9 @@ with block:
|
|
| 250 |
run_button = gr.Button("Run")
|
| 251 |
# run_button = gr.Button(label="Run")
|
| 252 |
with gr.Column():
|
| 253 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
|
|
|
|
|
|
| 254 |
run_button.click(fn=canny, inputs=[input_image, resolution, low_threshold, high_threshold], outputs=[gallery])
|
| 255 |
|
| 256 |
gr.Markdown("<hr>")
|
|
@@ -265,8 +267,8 @@ with block:
|
|
| 265 |
run_button = gr.Button("Run")
|
| 266 |
# run_button = gr.Button(label="Run")
|
| 267 |
with gr.Column():
|
| 268 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 269 |
-
# run_button.click(fn=inpaint, inputs=[input_image, resolution], outputs=[gallery])
|
| 270 |
run_button.click(fn=inpaint, inputs=[input_image, invert], outputs=[gallery])
|
| 271 |
|
| 272 |
gr.Markdown("<hr>")
|
|
@@ -280,8 +282,8 @@ with block:
|
|
| 280 |
run_button = gr.Button("Run")
|
| 281 |
# run_button = gr.Button(label="Run")
|
| 282 |
with gr.Column():
|
| 283 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 284 |
-
run_button.click(fn=hed, inputs=[input_image, resolution], outputs=[gallery])
|
| 285 |
|
| 286 |
gr.Markdown("<hr>")
|
| 287 |
with gr.Row():
|
|
@@ -294,8 +296,8 @@ with block:
|
|
| 294 |
run_button = gr.Button("Run")
|
| 295 |
# run_button = gr.Button(label="Run")
|
| 296 |
with gr.Column():
|
| 297 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 298 |
-
run_button.click(fn=pidi, inputs=[input_image, resolution], outputs=[gallery])
|
| 299 |
|
| 300 |
gr.Markdown("<hr>")
|
| 301 |
with gr.Row():
|
|
@@ -310,8 +312,8 @@ with block:
|
|
| 310 |
run_button = gr.Button("Run")
|
| 311 |
# run_button = gr.Button(label="Run")
|
| 312 |
with gr.Column():
|
| 313 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 314 |
-
run_button.click(fn=mlsd, inputs=[input_image, resolution, value_threshold, distance_threshold], outputs=[gallery])
|
| 315 |
|
| 316 |
gr.Markdown("<hr>")
|
| 317 |
with gr.Row():
|
|
@@ -324,8 +326,8 @@ with block:
|
|
| 324 |
run_button = gr.Button("Run")
|
| 325 |
# run_button = gr.Button(label="Run")
|
| 326 |
with gr.Column():
|
| 327 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 328 |
-
run_button.click(fn=midas, inputs=[input_image, resolution], outputs=[gallery])
|
| 329 |
|
| 330 |
|
| 331 |
gr.Markdown("<hr>")
|
|
@@ -339,8 +341,8 @@ with block:
|
|
| 339 |
run_button = gr.Button("Run")
|
| 340 |
# run_button = gr.Button(label="Run")
|
| 341 |
with gr.Column():
|
| 342 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 343 |
-
run_button.click(fn=zoe, inputs=[input_image, resolution], outputs=[gallery])
|
| 344 |
|
| 345 |
gr.Markdown("<hr>")
|
| 346 |
with gr.Row():
|
|
@@ -353,8 +355,8 @@ with block:
|
|
| 353 |
run_button = gr.Button("Run")
|
| 354 |
# run_button = gr.Button(label="Run")
|
| 355 |
with gr.Column():
|
| 356 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 357 |
-
run_button.click(fn=normalbae, inputs=[input_image, resolution], outputs=[gallery])
|
| 358 |
|
| 359 |
gr.Markdown("<hr>")
|
| 360 |
with gr.Row():
|
|
@@ -367,8 +369,8 @@ with block:
|
|
| 367 |
run_button = gr.Button("Run")
|
| 368 |
# run_button = gr.Button(label="Run")
|
| 369 |
with gr.Column():
|
| 370 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 371 |
-
run_button.click(fn=dwpose, inputs=[input_image, resolution], outputs=[gallery])
|
| 372 |
|
| 373 |
gr.Markdown("<hr>")
|
| 374 |
with gr.Row():
|
|
@@ -382,8 +384,8 @@ with block:
|
|
| 382 |
run_button = gr.Button("Run")
|
| 383 |
# run_button = gr.Button(label="Run")
|
| 384 |
with gr.Column():
|
| 385 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 386 |
-
run_button.click(fn=openpose, inputs=[input_image, resolution, hand_and_face], outputs=[gallery])
|
| 387 |
|
| 388 |
gr.Markdown("<hr>")
|
| 389 |
with gr.Row():
|
|
@@ -397,8 +399,8 @@ with block:
|
|
| 397 |
run_button = gr.Button("Run")
|
| 398 |
# run_button = gr.Button(label="Run")
|
| 399 |
with gr.Column():
|
| 400 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 401 |
-
run_button.click(fn=lineart_anime, inputs=[input_image, resolution, invert], outputs=[gallery])
|
| 402 |
|
| 403 |
gr.Markdown("<hr>")
|
| 404 |
with gr.Row():
|
|
@@ -413,8 +415,8 @@ with block:
|
|
| 413 |
run_button = gr.Button("Run")
|
| 414 |
# run_button = gr.Button(label="Run")
|
| 415 |
with gr.Column():
|
| 416 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 417 |
-
run_button.click(fn=lineart, inputs=[input_image, resolution, coarse, invert], outputs=[gallery])
|
| 418 |
|
| 419 |
# with gr.Row():
|
| 420 |
# gr.Markdown("## Uniformer Segmentation")
|
|
@@ -438,8 +440,8 @@ with block:
|
|
| 438 |
run_button = gr.Button("Run")
|
| 439 |
# run_button = gr.Button(label="Run")
|
| 440 |
with gr.Column():
|
| 441 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 442 |
-
run_button.click(fn=oneformer_coco, inputs=[input_image, resolution], outputs=[gallery])
|
| 443 |
|
| 444 |
gr.Markdown("<hr>")
|
| 445 |
with gr.Row():
|
|
@@ -451,8 +453,8 @@ with block:
|
|
| 451 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=640, step=64)
|
| 452 |
run_button = gr.Button("Run")
|
| 453 |
# run_button = gr.Button(label="Run")
|
| 454 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 455 |
-
run_button.click(fn=oneformer_ade20k, inputs=[input_image, resolution], outputs=[gallery])
|
| 456 |
|
| 457 |
gr.Markdown("<hr>")
|
| 458 |
with gr.Row():
|
|
@@ -465,8 +467,8 @@ with block:
|
|
| 465 |
run_button = gr.Button("Run")
|
| 466 |
# run_button = gr.Button(label="Run")
|
| 467 |
with gr.Column():
|
| 468 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 469 |
-
run_button.click(fn=content_shuffler, inputs=[input_image, resolution], outputs=[gallery])
|
| 470 |
|
| 471 |
gr.Markdown("<hr>")
|
| 472 |
with gr.Row():
|
|
@@ -479,8 +481,8 @@ with block:
|
|
| 479 |
run_button = gr.Button("Run")
|
| 480 |
# run_button = gr.Button(label="Run")
|
| 481 |
with gr.Column():
|
| 482 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
| 483 |
-
run_button.click(fn=color_shuffler, inputs=[input_image, resolution], outputs=[gallery])
|
| 484 |
|
| 485 |
|
| 486 |
block.launch(server_name='0.0.0.0')
|
|
|
|
| 250 |
run_button = gr.Button("Run")
|
| 251 |
# run_button = gr.Button(label="Run")
|
| 252 |
with gr.Column():
|
| 253 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 254 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
| 255 |
+
|
| 256 |
run_button.click(fn=canny, inputs=[input_image, resolution, low_threshold, high_threshold], outputs=[gallery])
|
| 257 |
|
| 258 |
gr.Markdown("<hr>")
|
|
|
|
| 267 |
run_button = gr.Button("Run")
|
| 268 |
# run_button = gr.Button(label="Run")
|
| 269 |
with gr.Column():
|
| 270 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 271 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")# run_button.click(fn=inpaint, inputs=[input_image, resolution], outputs=[gallery])
|
| 272 |
run_button.click(fn=inpaint, inputs=[input_image, invert], outputs=[gallery])
|
| 273 |
|
| 274 |
gr.Markdown("<hr>")
|
|
|
|
| 282 |
run_button = gr.Button("Run")
|
| 283 |
# run_button = gr.Button(label="Run")
|
| 284 |
with gr.Column():
|
| 285 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 286 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=hed, inputs=[input_image, resolution], outputs=[gallery])
|
| 287 |
|
| 288 |
gr.Markdown("<hr>")
|
| 289 |
with gr.Row():
|
|
|
|
| 296 |
run_button = gr.Button("Run")
|
| 297 |
# run_button = gr.Button(label="Run")
|
| 298 |
with gr.Column():
|
| 299 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 300 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=pidi, inputs=[input_image, resolution], outputs=[gallery])
|
| 301 |
|
| 302 |
gr.Markdown("<hr>")
|
| 303 |
with gr.Row():
|
|
|
|
| 312 |
run_button = gr.Button("Run")
|
| 313 |
# run_button = gr.Button(label="Run")
|
| 314 |
with gr.Column():
|
| 315 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 316 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=mlsd, inputs=[input_image, resolution, value_threshold, distance_threshold], outputs=[gallery])
|
| 317 |
|
| 318 |
gr.Markdown("<hr>")
|
| 319 |
with gr.Row():
|
|
|
|
| 326 |
run_button = gr.Button("Run")
|
| 327 |
# run_button = gr.Button(label="Run")
|
| 328 |
with gr.Column():
|
| 329 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 330 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=midas, inputs=[input_image, resolution], outputs=[gallery])
|
| 331 |
|
| 332 |
|
| 333 |
gr.Markdown("<hr>")
|
|
|
|
| 341 |
run_button = gr.Button("Run")
|
| 342 |
# run_button = gr.Button(label="Run")
|
| 343 |
with gr.Column():
|
| 344 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 345 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=zoe, inputs=[input_image, resolution], outputs=[gallery])
|
| 346 |
|
| 347 |
gr.Markdown("<hr>")
|
| 348 |
with gr.Row():
|
|
|
|
| 355 |
run_button = gr.Button("Run")
|
| 356 |
# run_button = gr.Button(label="Run")
|
| 357 |
with gr.Column():
|
| 358 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 359 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=normalbae, inputs=[input_image, resolution], outputs=[gallery])
|
| 360 |
|
| 361 |
gr.Markdown("<hr>")
|
| 362 |
with gr.Row():
|
|
|
|
| 369 |
run_button = gr.Button("Run")
|
| 370 |
# run_button = gr.Button(label="Run")
|
| 371 |
with gr.Column():
|
| 372 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 373 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=dwpose, inputs=[input_image, resolution], outputs=[gallery])
|
| 374 |
|
| 375 |
gr.Markdown("<hr>")
|
| 376 |
with gr.Row():
|
|
|
|
| 384 |
run_button = gr.Button("Run")
|
| 385 |
# run_button = gr.Button(label="Run")
|
| 386 |
with gr.Column():
|
| 387 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 388 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=openpose, inputs=[input_image, resolution, hand_and_face], outputs=[gallery])
|
| 389 |
|
| 390 |
gr.Markdown("<hr>")
|
| 391 |
with gr.Row():
|
|
|
|
| 399 |
run_button = gr.Button("Run")
|
| 400 |
# run_button = gr.Button(label="Run")
|
| 401 |
with gr.Column():
|
| 402 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 403 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=lineart_anime, inputs=[input_image, resolution, invert], outputs=[gallery])
|
| 404 |
|
| 405 |
gr.Markdown("<hr>")
|
| 406 |
with gr.Row():
|
|
|
|
| 415 |
run_button = gr.Button("Run")
|
| 416 |
# run_button = gr.Button(label="Run")
|
| 417 |
with gr.Column():
|
| 418 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 419 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=lineart, inputs=[input_image, resolution, coarse, invert], outputs=[gallery])
|
| 420 |
|
| 421 |
# with gr.Row():
|
| 422 |
# gr.Markdown("## Uniformer Segmentation")
|
|
|
|
| 440 |
run_button = gr.Button("Run")
|
| 441 |
# run_button = gr.Button(label="Run")
|
| 442 |
with gr.Column():
|
| 443 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 444 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=oneformer_coco, inputs=[input_image, resolution], outputs=[gallery])
|
| 445 |
|
| 446 |
gr.Markdown("<hr>")
|
| 447 |
with gr.Row():
|
|
|
|
| 453 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=640, step=64)
|
| 454 |
run_button = gr.Button("Run")
|
| 455 |
# run_button = gr.Button(label="Run")
|
| 456 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 457 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=oneformer_ade20k, inputs=[input_image, resolution], outputs=[gallery])
|
| 458 |
|
| 459 |
gr.Markdown("<hr>")
|
| 460 |
with gr.Row():
|
|
|
|
| 467 |
run_button = gr.Button("Run")
|
| 468 |
# run_button = gr.Button(label="Run")
|
| 469 |
with gr.Column():
|
| 470 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 471 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=content_shuffler, inputs=[input_image, resolution], outputs=[gallery])
|
| 472 |
|
| 473 |
gr.Markdown("<hr>")
|
| 474 |
with gr.Row():
|
|
|
|
| 481 |
run_button = gr.Button("Run")
|
| 482 |
# run_button = gr.Button(label="Run")
|
| 483 |
with gr.Column():
|
| 484 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
| 485 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto") run_button.click(fn=color_shuffler, inputs=[input_image, resolution], outputs=[gallery])
|
| 486 |
|
| 487 |
|
| 488 |
block.launch(server_name='0.0.0.0')
|