nyanko7 commited on
Commit
373549b
1 Parent(s): 12b126f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -769,7 +769,6 @@ def generate_image(
769
  model = model.to(torch_device)
770
  model_zero_init = True
771
 
772
- torg = time.perf_counter()
773
  if do_img2img and init_image is not None:
774
  init_image = get_image(init_image)
775
  if resize_img:
@@ -808,7 +807,6 @@ def generate_image(
808
  x = x.clamp(-1, 1)
809
  x = rearrange(x[0], "c h w -> h w c")
810
  img = Image.fromarray((127.5 * (x + 1.0)).cpu().byte().numpy())
811
- seed += f"\nGenerated in {time.perf_counter() - torg:.2f}s"
812
 
813
  return img, seed
814
 
 
769
  model = model.to(torch_device)
770
  model_zero_init = True
771
 
 
772
  if do_img2img and init_image is not None:
773
  init_image = get_image(init_image)
774
  if resize_img:
 
807
  x = x.clamp(-1, 1)
808
  x = rearrange(x[0], "c h w -> h w c")
809
  img = Image.fromarray((127.5 * (x + 1.0)).cpu().byte().numpy())
 
810
 
811
  return img, seed
812