alexnasa commited on
Commit
e8d4ffa
·
verified ·
1 Parent(s): d6b0d72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -52
app.py CHANGED
@@ -192,10 +192,6 @@ tag_model.to(device, dtype=weight_dtype)
192
  def process(
193
  input_image: Image.Image,
194
  user_prompt: str,
195
- use_KDS: bool,
196
- bandwidth: float,
197
- patch_size: int,
198
- num_particles: int,
199
  positive_prompt: str,
200
  negative_prompt: str,
201
  num_inference_steps: int,
@@ -257,8 +253,7 @@ def process(
257
  height=height, width=width,
258
  guidance_scale=cfg_scale, conditioning_scale=1,
259
  start_point='lr', start_steps=999,ram_encoder_hidden_states=ram_encoder_hidden_states,
260
- latent_tiled_size=latent_tiled_size, latent_tiled_overlap=latent_tiled_overlap,
261
- use_KDS=use_KDS, bandwidth=bandwidth, num_particles=num_particles, patch_size=patch_size,
262
  ).images[0]
263
 
264
  if True: # alpha<1.0:
@@ -320,43 +315,6 @@ with block:
320
  "preset/datasets/test_datasets/man.png",
321
  "",
322
  False,
323
- 0.1,
324
- 4,
325
- 4,
326
- "clean, high-resolution, 8k, best quality, masterpiece",
327
- "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
328
- 50,
329
- 4,
330
- 7.5,
331
- 123,
332
- 320,
333
- 4,
334
- 1,
335
- ],
336
- [
337
- "preset/datasets/test_datasets/man.png",
338
- "",
339
- True,
340
- 0.1,
341
- 16,
342
- 4,
343
- "clean, high-resolution, 8k, best quality, masterpiece",
344
- "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
345
- 50,
346
- 4,
347
- 7.5,
348
- 123,
349
- 320,
350
- 4,
351
- 1,
352
- ],
353
- [
354
- "preset/datasets/test_datasets/man.png",
355
- "",
356
- True,
357
- 0.1,
358
- 4,
359
- 4,
360
  "clean, high-resolution, 8k, best quality, masterpiece",
361
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
362
  50,
@@ -366,15 +324,11 @@ with block:
366
  320,
367
  4,
368
  1,
369
- ],
370
  ],
371
  inputs=[
372
  input_image,
373
  user_prompt,
374
- use_KDS,
375
- bandwidth,
376
- patch_size,
377
- num_particles,
378
  positive_prompt,
379
  negative_prompt,
380
  num_inference_steps,
@@ -392,10 +346,6 @@ with block:
392
  inputs = [
393
  input_image,
394
  user_prompt,
395
- use_KDS,
396
- bandwidth,
397
- patch_size,
398
- num_particles,
399
  positive_prompt,
400
  negative_prompt,
401
  num_inference_steps,
 
192
  def process(
193
  input_image: Image.Image,
194
  user_prompt: str,
 
 
 
 
195
  positive_prompt: str,
196
  negative_prompt: str,
197
  num_inference_steps: int,
 
253
  height=height, width=width,
254
  guidance_scale=cfg_scale, conditioning_scale=1,
255
  start_point='lr', start_steps=999,ram_encoder_hidden_states=ram_encoder_hidden_states,
256
+ latent_tiled_size=latent_tiled_size, latent_tiled_overlap=latent_tiled_overlap,
 
257
  ).images[0]
258
 
259
  if True: # alpha<1.0:
 
315
  "preset/datasets/test_datasets/man.png",
316
  "",
317
  False,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
318
  "clean, high-resolution, 8k, best quality, masterpiece",
319
  "dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
320
  50,
 
324
  320,
325
  4,
326
  1,
327
+ ],
328
  ],
329
  inputs=[
330
  input_image,
331
  user_prompt,
 
 
 
 
332
  positive_prompt,
333
  negative_prompt,
334
  num_inference_steps,
 
346
  inputs = [
347
  input_image,
348
  user_prompt,
 
 
 
 
349
  positive_prompt,
350
  negative_prompt,
351
  num_inference_steps,