alexnasa commited on
Commit
f9c5cd3
·
verified ·
1 Parent(s): ef10a64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -37
app.py CHANGED
@@ -214,7 +214,7 @@ with block:
214
  input_image = gr.Image(type="pil")
215
  num_particles = gr.Slider(label="Num of Partickes", minimum=1, maximum=16, step=1, value=10)
216
  bandwidth = gr.Slider(label="Bandwidth", minimum=0.1, maximum=0.8, step=0.1, value=0.1)
217
- patch_size = gr.Slider(label="Patch Size", minimum=1, maximum=16, step=16, value=4)
218
  use_KDS = gr.Checkbox(label="Use Kernel Density Steering")
219
  run_button = gr.Button("Run")
220
  with gr.Accordion("Options", open=True):
@@ -240,24 +240,7 @@ with block:
240
  "",
241
  False,
242
  0.1,
243
- 16,
244
  4,
245
- "clean, high-resolution, 8k, best quality, masterpiece",
246
- "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
247
- 50,
248
- 4,
249
- 7.5,
250
- 123,
251
- 320,
252
- 4,
253
- 1,
254
- ],
255
- [
256
- "preset/datasets/test_datasets/179.png",
257
- "",
258
- True,
259
- 0.1,
260
- 16,
261
  4,
262
  "clean, high-resolution, 8k, best quality, masterpiece",
263
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
@@ -275,7 +258,7 @@ with block:
275
  True,
276
  0.1,
277
  4,
278
- 4,
279
  "clean, high-resolution, 8k, best quality, masterpiece",
280
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
281
  50,
@@ -292,24 +275,7 @@ with block:
292
  True,
293
  0.1,
294
  4,
295
- 1,
296
- "clean, high-resolution, 8k, best quality, masterpiece",
297
- "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
298
- 50,
299
- 4,
300
- 7.5,
301
- 123,
302
- 320,
303
- 4,
304
- 1,
305
- ],
306
- [
307
- "preset/datasets/test_datasets/179.png",
308
- "",
309
- True,
310
- 0.1,
311
- 32,
312
- 16,
313
  "clean, high-resolution, 8k, best quality, masterpiece",
314
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
315
  50,
 
214
  input_image = gr.Image(type="pil")
215
  num_particles = gr.Slider(label="Num of Partickes", minimum=1, maximum=16, step=1, value=10)
216
  bandwidth = gr.Slider(label="Bandwidth", minimum=0.1, maximum=0.8, step=0.1, value=0.1)
217
+ patch_size = gr.Slider(label="Patch Size", minimum=1, maximum=16, step=16, value=1)
218
  use_KDS = gr.Checkbox(label="Use Kernel Density Steering")
219
  run_button = gr.Button("Run")
220
  with gr.Accordion("Options", open=True):
 
240
  "",
241
  False,
242
  0.1,
 
243
  4,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
  4,
245
  "clean, high-resolution, 8k, best quality, masterpiece",
246
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
 
258
  True,
259
  0.1,
260
  4,
261
+ 32,
262
  "clean, high-resolution, 8k, best quality, masterpiece",
263
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
264
  50,
 
275
  True,
276
  0.1,
277
  4,
278
+ 64,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  "clean, high-resolution, 8k, best quality, masterpiece",
280
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
281
  50,