Fabrice-TIERCELIN commited on
Commit
a2acec3
1 Parent(s): f7a070c

Set max seed

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ from PIL import Image
17
  from SUPIR.util import HWC3, upscale_image, fix_resize, convert_dtype, create_SUPIR_model, load_QF_ckpt
18
  from huggingface_hub import hf_hub_download
19
 
20
- max_64_bit_int = 2**63 - 1
21
 
22
  hf_hub_download(repo_id="laion/CLIP-ViT-bigG-14-laion2B-39B-b160k", filename="open_clip_pytorch_model.bin", local_dir="laion_CLIP-ViT-bigG-14-laion2B-39B-b160k")
23
  hf_hub_download(repo_id="camenduru/SUPIR", filename="sd_xl_base_1.0_0.9vae.safetensors", local_dir="yushan777_SUPIR")
@@ -424,7 +424,7 @@ def restore_on_gpu(
424
  print("edm_steps: " + str(edm_steps))
425
  print("num_samples: " + str(num_samples))
426
  print("downscale: " + str(downscale))
427
- print("Estimated minutes: " + f'{((result_width * result_height * input_width * input_height * edm_steps * (num_samples**(1/2)))**(1/3)) / 5000000:,}')
428
  except Exception as e:
429
  print('Exception of Estimation')
430
 
 
17
  from SUPIR.util import HWC3, upscale_image, fix_resize, convert_dtype, create_SUPIR_model, load_QF_ckpt
18
  from huggingface_hub import hf_hub_download
19
 
20
+ max_64_bit_int = 2**32 - 1
21
 
22
  hf_hub_download(repo_id="laion/CLIP-ViT-bigG-14-laion2B-39B-b160k", filename="open_clip_pytorch_model.bin", local_dir="laion_CLIP-ViT-bigG-14-laion2B-39B-b160k")
23
  hf_hub_download(repo_id="camenduru/SUPIR", filename="sd_xl_base_1.0_0.9vae.safetensors", local_dir="yushan777_SUPIR")
 
424
  print("edm_steps: " + str(edm_steps))
425
  print("num_samples: " + str(num_samples))
426
  print("downscale: " + str(downscale))
427
+ print("Estimated minutes: " + f'{((result_width * result_height * input_width * input_height * edm_steps * (num_samples**(1/2)))**(1/3)) / 15000:,}')
428
  except Exception as e:
429
  print('Exception of Estimation')
430