hysts HF staff commited on
Commit
e8fee3b
1 Parent(s): f863ebd

Reduce max image size to avoid OOM

Browse files
app_canny.py CHANGED
@@ -20,7 +20,7 @@ def create_demo(process, max_images=12, default_num_images=3):
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
- maximum=768,
24
  value=512,
25
  step=256)
26
  canny_low_threshold = gr.Slider(
 
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
+ maximum=512,
24
  value=512,
25
  step=256)
26
  canny_low_threshold = gr.Slider(
app_depth.py CHANGED
@@ -22,12 +22,12 @@ def create_demo(process, max_images=12, default_num_images=3):
22
  step=1)
23
  image_resolution = gr.Slider(label='Image Resolution',
24
  minimum=256,
25
- maximum=768,
26
  value=512,
27
  step=256)
28
  detect_resolution = gr.Slider(label='Depth Resolution',
29
  minimum=128,
30
- maximum=1024,
31
  value=384,
32
  step=1)
33
  num_steps = gr.Slider(label='Steps',
 
22
  step=1)
23
  image_resolution = gr.Slider(label='Image Resolution',
24
  minimum=256,
25
+ maximum=512,
26
  value=512,
27
  step=256)
28
  detect_resolution = gr.Slider(label='Depth Resolution',
29
  minimum=128,
30
+ maximum=512,
31
  value=384,
32
  step=1)
33
  num_steps = gr.Slider(label='Steps',
app_fake_scribble.py CHANGED
@@ -20,12 +20,12 @@ def create_demo(process, max_images=12, default_num_images=3):
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
- maximum=768,
24
  value=512,
25
  step=256)
26
  detect_resolution = gr.Slider(label='HED Resolution',
27
  minimum=128,
28
- maximum=1024,
29
  value=512,
30
  step=1)
31
  num_steps = gr.Slider(label='Steps',
 
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
+ maximum=512,
24
  value=512,
25
  step=256)
26
  detect_resolution = gr.Slider(label='HED Resolution',
27
  minimum=128,
28
+ maximum=512,
29
  value=512,
30
  step=1)
31
  num_steps = gr.Slider(label='Steps',
app_hed.py CHANGED
@@ -20,12 +20,12 @@ def create_demo(process, max_images=12, default_num_images=3):
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
- maximum=768,
24
  value=512,
25
  step=256)
26
  detect_resolution = gr.Slider(label='HED Resolution',
27
  minimum=128,
28
- maximum=1024,
29
  value=512,
30
  step=1)
31
  num_steps = gr.Slider(label='Steps',
 
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
+ maximum=512,
24
  value=512,
25
  step=256)
26
  detect_resolution = gr.Slider(label='HED Resolution',
27
  minimum=128,
28
+ maximum=512,
29
  value=512,
30
  step=1)
31
  num_steps = gr.Slider(label='Steps',
app_hough.py CHANGED
@@ -20,12 +20,12 @@ def create_demo(process, max_images=12, default_num_images=3):
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
- maximum=768,
24
  value=512,
25
  step=256)
26
  detect_resolution = gr.Slider(label='Hough Resolution',
27
  minimum=128,
28
- maximum=1024,
29
  value=512,
30
  step=1)
31
  mlsd_value_threshold = gr.Slider(
 
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
+ maximum=512,
24
  value=512,
25
  step=256)
26
  detect_resolution = gr.Slider(label='Hough Resolution',
27
  minimum=128,
28
+ maximum=512,
29
  value=512,
30
  step=1)
31
  mlsd_value_threshold = gr.Slider(
app_normal.py CHANGED
@@ -22,12 +22,12 @@ def create_demo(process, max_images=12, default_num_images=3):
22
  step=1)
23
  image_resolution = gr.Slider(label='Image Resolution',
24
  minimum=256,
25
- maximum=768,
26
  value=512,
27
  step=256)
28
  detect_resolution = gr.Slider(label='Normal Resolution',
29
  minimum=128,
30
- maximum=1024,
31
  value=384,
32
  step=1)
33
  bg_threshold = gr.Slider(
 
22
  step=1)
23
  image_resolution = gr.Slider(label='Image Resolution',
24
  minimum=256,
25
+ maximum=512,
26
  value=512,
27
  step=256)
28
  detect_resolution = gr.Slider(label='Normal Resolution',
29
  minimum=128,
30
+ maximum=512,
31
  value=384,
32
  step=1)
33
  bg_threshold = gr.Slider(
app_pose.py CHANGED
@@ -25,12 +25,12 @@ def create_demo(process, max_images=12, default_num_images=3):
25
  step=1)
26
  image_resolution = gr.Slider(label='Image Resolution',
27
  minimum=256,
28
- maximum=768,
29
  value=512,
30
  step=256)
31
  detect_resolution = gr.Slider(label='OpenPose Resolution',
32
  minimum=128,
33
- maximum=1024,
34
  value=512,
35
  step=1)
36
  num_steps = gr.Slider(label='Steps',
 
25
  step=1)
26
  image_resolution = gr.Slider(label='Image Resolution',
27
  minimum=256,
28
+ maximum=512,
29
  value=512,
30
  step=256)
31
  detect_resolution = gr.Slider(label='OpenPose Resolution',
32
  minimum=128,
33
+ maximum=512,
34
  value=512,
35
  step=1)
36
  num_steps = gr.Slider(label='Steps',
app_scribble.py CHANGED
@@ -20,7 +20,7 @@ def create_demo(process, max_images=12, default_num_images=3):
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
- maximum=768,
24
  value=512,
25
  step=256)
26
  num_steps = gr.Slider(label='Steps',
 
20
  step=1)
21
  image_resolution = gr.Slider(label='Image Resolution',
22
  minimum=256,
23
+ maximum=512,
24
  value=512,
25
  step=256)
26
  num_steps = gr.Slider(label='Steps',
app_scribble_interactive.py CHANGED
@@ -17,12 +17,12 @@ def create_demo(process, max_images=12, default_num_images=3):
17
  with gr.Column():
18
  canvas_width = gr.Slider(label='Canvas Width',
19
  minimum=256,
20
- maximum=1024,
21
  value=512,
22
  step=1)
23
  canvas_height = gr.Slider(label='Canvas Height',
24
  minimum=256,
25
- maximum=1024,
26
  value=512,
27
  step=1)
28
  create_button = gr.Button(label='Start',
@@ -49,7 +49,7 @@ def create_demo(process, max_images=12, default_num_images=3):
49
  step=1)
50
  image_resolution = gr.Slider(label='Image Resolution',
51
  minimum=256,
52
- maximum=768,
53
  value=512,
54
  step=256)
55
  num_steps = gr.Slider(label='Steps',
 
17
  with gr.Column():
18
  canvas_width = gr.Slider(label='Canvas Width',
19
  minimum=256,
20
+ maximum=512,
21
  value=512,
22
  step=1)
23
  canvas_height = gr.Slider(label='Canvas Height',
24
  minimum=256,
25
+ maximum=512,
26
  value=512,
27
  step=1)
28
  create_button = gr.Button(label='Start',
 
49
  step=1)
50
  image_resolution = gr.Slider(label='Image Resolution',
51
  minimum=256,
52
+ maximum=512,
53
  value=512,
54
  step=256)
55
  num_steps = gr.Slider(label='Steps',
app_seg.py CHANGED
@@ -22,13 +22,13 @@ def create_demo(process, max_images=12, default_num_images=3):
22
  step=1)
23
  image_resolution = gr.Slider(label='Image Resolution',
24
  minimum=256,
25
- maximum=768,
26
  value=512,
27
  step=256)
28
  detect_resolution = gr.Slider(
29
  label='Segmentation Resolution',
30
  minimum=128,
31
- maximum=1024,
32
  value=512,
33
  step=1)
34
  num_steps = gr.Slider(label='Steps',
 
22
  step=1)
23
  image_resolution = gr.Slider(label='Image Resolution',
24
  minimum=256,
25
+ maximum=512,
26
  value=512,
27
  step=256)
28
  detect_resolution = gr.Slider(
29
  label='Segmentation Resolution',
30
  minimum=128,
31
+ maximum=512,
32
  value=512,
33
  step=1)
34
  num_steps = gr.Slider(label='Steps',