Update app.py
Browse files
app.py
CHANGED
@@ -250,7 +250,8 @@ with block:
|
|
250 |
low_threshold = gr.Slider(label="low_threshold", minimum=1, maximum=255, value=100, step=1)
|
251 |
high_threshold = gr.Slider(label="high_threshold", minimum=1, maximum=255, value=200, step=1)
|
252 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
253 |
-
run_button = gr.Button(
|
|
|
254 |
with gr.Column():
|
255 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
256 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -264,7 +265,8 @@ with block:
|
|
264 |
# input_image = gr.Image(source='upload', type="numpy")
|
265 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
266 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
267 |
-
run_button = gr.Button(
|
|
|
268 |
with gr.Column():
|
269 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
270 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -278,7 +280,8 @@ with block:
|
|
278 |
# input_image = gr.Image(source='upload', type="numpy")
|
279 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
280 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
281 |
-
run_button = gr.Button(
|
|
|
282 |
with gr.Column():
|
283 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
284 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -294,7 +297,8 @@ with block:
|
|
294 |
value_threshold = gr.Slider(label="value_threshold", minimum=0.01, maximum=2.0, value=0.1, step=0.01)
|
295 |
distance_threshold = gr.Slider(label="distance_threshold", minimum=0.01, maximum=20.0, value=0.1, step=0.01)
|
296 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=384, step=64)
|
297 |
-
run_button = gr.Button(
|
|
|
298 |
with gr.Column():
|
299 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
300 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -308,7 +312,8 @@ with block:
|
|
308 |
# input_image = gr.Image(source='upload', type="numpy")
|
309 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
310 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=384, step=64)
|
311 |
-
run_button = gr.Button(
|
|
|
312 |
with gr.Column():
|
313 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
314 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -323,7 +328,8 @@ with block:
|
|
323 |
# input_image = gr.Image(source='upload', type="numpy")
|
324 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
325 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
326 |
-
run_button = gr.Button(
|
|
|
327 |
with gr.Column():
|
328 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
329 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -337,7 +343,8 @@ with block:
|
|
337 |
# input_image = gr.Image(source='upload', type="numpy")
|
338 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
339 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
340 |
-
run_button = gr.Button(
|
|
|
341 |
with gr.Column():
|
342 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
343 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -351,7 +358,8 @@ with block:
|
|
351 |
# input_image = gr.Image(source='upload', type="numpy")
|
352 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
353 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
354 |
-
run_button = gr.Button(
|
|
|
355 |
with gr.Column():
|
356 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
357 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -366,7 +374,8 @@ with block:
|
|
366 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
367 |
hand_and_face = gr.Checkbox(label='Hand and Face', value=False)
|
368 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
369 |
-
run_button = gr.Button(
|
|
|
370 |
with gr.Column():
|
371 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
372 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -381,7 +390,8 @@ with block:
|
|
381 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
382 |
invert = gr.Checkbox(label='Invert', value=True)
|
383 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
384 |
-
run_button = gr.Button(
|
|
|
385 |
with gr.Column():
|
386 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
387 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -397,7 +407,8 @@ with block:
|
|
397 |
coarse = gr.Checkbox(label='Using coarse model', value=False)
|
398 |
invert = gr.Checkbox(label='Invert', value=True)
|
399 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
400 |
-
run_button = gr.Button(
|
|
|
401 |
with gr.Column():
|
402 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
403 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -411,7 +422,8 @@ with block:
|
|
411 |
# input_image = gr.Image(source='upload', type="numpy", tool="sketch", height=512)
|
412 |
input_image = gr.ImageMask(sources="upload", type="numpy", height="auto")
|
413 |
invert = gr.Checkbox(label='Invert Mask', value=False)
|
414 |
-
run_button = gr.Button(
|
|
|
415 |
with gr.Column():
|
416 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
417 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -436,7 +448,8 @@ with block:
|
|
436 |
# input_image = gr.Image(source='upload', type="numpy")
|
437 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
438 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
439 |
-
run_button = gr.Button(
|
|
|
440 |
with gr.Column():
|
441 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
442 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -450,7 +463,8 @@ with block:
|
|
450 |
# input_image = gr.Image(source='upload', type="numpy")
|
451 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
452 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=640, step=64)
|
453 |
-
run_button = gr.Button(
|
|
|
454 |
with gr.Column():
|
455 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
456 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -464,7 +478,8 @@ with block:
|
|
464 |
# input_image = gr.Image(source='upload', type="numpy")
|
465 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
466 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
467 |
-
run_button = gr.Button(
|
|
|
468 |
with gr.Column():
|
469 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
470 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
@@ -478,7 +493,8 @@ with block:
|
|
478 |
# input_image = gr.Image(source='upload', type="numpy")
|
479 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
480 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
481 |
-
run_button = gr.Button(
|
|
|
482 |
with gr.Column():
|
483 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
484 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
250 |
low_threshold = gr.Slider(label="low_threshold", minimum=1, maximum=255, value=100, step=1)
|
251 |
high_threshold = gr.Slider(label="high_threshold", minimum=1, maximum=255, value=200, step=1)
|
252 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
253 |
+
run_button = gr.Button("Run")
|
254 |
+
# run_button = gr.Button(label="Run")
|
255 |
with gr.Column():
|
256 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
257 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
265 |
# input_image = gr.Image(source='upload', type="numpy")
|
266 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
267 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
268 |
+
run_button = gr.Button("Run")
|
269 |
+
# run_button = gr.Button(label="Run")
|
270 |
with gr.Column():
|
271 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
272 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
280 |
# input_image = gr.Image(source='upload', type="numpy")
|
281 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
282 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
283 |
+
run_button = gr.Button("Run")
|
284 |
+
# run_button = gr.Button(label="Run")
|
285 |
with gr.Column():
|
286 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
287 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
297 |
value_threshold = gr.Slider(label="value_threshold", minimum=0.01, maximum=2.0, value=0.1, step=0.01)
|
298 |
distance_threshold = gr.Slider(label="distance_threshold", minimum=0.01, maximum=20.0, value=0.1, step=0.01)
|
299 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=384, step=64)
|
300 |
+
run_button = gr.Button("Run")
|
301 |
+
# run_button = gr.Button(label="Run")
|
302 |
with gr.Column():
|
303 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
304 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
312 |
# input_image = gr.Image(source='upload', type="numpy")
|
313 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
314 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=384, step=64)
|
315 |
+
run_button = gr.Button("Run")
|
316 |
+
# run_button = gr.Button(label="Run")
|
317 |
with gr.Column():
|
318 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
319 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
328 |
# input_image = gr.Image(source='upload', type="numpy")
|
329 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
330 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
331 |
+
run_button = gr.Button("Run")
|
332 |
+
# run_button = gr.Button(label="Run")
|
333 |
with gr.Column():
|
334 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
335 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
343 |
# input_image = gr.Image(source='upload', type="numpy")
|
344 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
345 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
346 |
+
run_button = gr.Button("Run")
|
347 |
+
# run_button = gr.Button(label="Run")
|
348 |
with gr.Column():
|
349 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
350 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
358 |
# input_image = gr.Image(source='upload', type="numpy")
|
359 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
360 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
361 |
+
run_button = gr.Button("Run")
|
362 |
+
# run_button = gr.Button(label="Run")
|
363 |
with gr.Column():
|
364 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
365 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
374 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
375 |
hand_and_face = gr.Checkbox(label='Hand and Face', value=False)
|
376 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
377 |
+
run_button = gr.Button("Run")
|
378 |
+
# run_button = gr.Button(label="Run")
|
379 |
with gr.Column():
|
380 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
381 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
390 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
391 |
invert = gr.Checkbox(label='Invert', value=True)
|
392 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
393 |
+
run_button = gr.Button("Run")
|
394 |
+
# run_button = gr.Button(label="Run")
|
395 |
with gr.Column():
|
396 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
397 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
407 |
coarse = gr.Checkbox(label='Using coarse model', value=False)
|
408 |
invert = gr.Checkbox(label='Invert', value=True)
|
409 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
410 |
+
run_button = gr.Button("Run")
|
411 |
+
# run_button = gr.Button(label="Run")
|
412 |
with gr.Column():
|
413 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
414 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
422 |
# input_image = gr.Image(source='upload', type="numpy", tool="sketch", height=512)
|
423 |
input_image = gr.ImageMask(sources="upload", type="numpy", height="auto")
|
424 |
invert = gr.Checkbox(label='Invert Mask', value=False)
|
425 |
+
run_button = gr.Button("Run")
|
426 |
+
# run_button = gr.Button(label="Run")
|
427 |
with gr.Column():
|
428 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
429 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
448 |
# input_image = gr.Image(source='upload', type="numpy")
|
449 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
450 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
451 |
+
run_button = gr.Button("Run")
|
452 |
+
# run_button = gr.Button(label="Run")
|
453 |
with gr.Column():
|
454 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
455 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
463 |
# input_image = gr.Image(source='upload', type="numpy")
|
464 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
465 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=640, step=64)
|
466 |
+
run_button = gr.Button("Run")
|
467 |
+
# run_button = gr.Button(label="Run")
|
468 |
with gr.Column():
|
469 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
470 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
478 |
# input_image = gr.Image(source='upload', type="numpy")
|
479 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
480 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
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).style(height="auto")
|
485 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
|
|
493 |
# input_image = gr.Image(source='upload', type="numpy")
|
494 |
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
495 |
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
496 |
+
run_button = gr.Button("Run")
|
497 |
+
# run_button = gr.Button(label="Run")
|
498 |
with gr.Column():
|
499 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
500 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|