patrickvonplaten HF staff commited on
Commit
ad8e48c
1 Parent(s): af34df9

Update diffusers version

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -22,22 +22,22 @@ def download_vae(vae_url):
22
  return "download vae done!"
23
 
24
  def to_pt():
25
- os.system("wget -q https://raw.githubusercontent.com/huggingface/diffusers/v0.13.1/scripts/convert_original_stable_diffusion_to_diffusers.py")
26
  os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --checkpoint_path model.ckpt --dump_path pt")
27
  return "convert to pt done!"
28
 
29
  def from_safetensors_to_pt():
30
- os.system("wget -q https://raw.githubusercontent.com/huggingface/diffusers/v0.13.1/scripts/convert_original_stable_diffusion_to_diffusers.py")
31
  os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --from_safetensors --checkpoint_path model.safetensors --dump_path pt")
32
  return "convert to pt done!"
33
 
34
  def from_ckpt_to_safetensors():
35
- os.system("wget -q https://raw.githubusercontent.com/huggingface/diffusers/v0.13.1/scripts/convert_original_stable_diffusion_to_diffusers.py")
36
  os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --checkpoint_path model.ckpt --to_safetensors --dump_path safetensors")
37
  return "convert to safetensors done!"
38
 
39
  def from_safetensors_to_safetensors():
40
- os.system("wget -q https://raw.githubusercontent.com/huggingface/diffusers/v0.13.1/scripts/convert_original_stable_diffusion_to_diffusers.py")
41
  os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --from_safetensors --checkpoint_path model.safetensors --to_safetensors --dump_path safetensors")
42
  return "convert to safetensors done!"
43
 
22
  return "download vae done!"
23
 
24
  def to_pt():
25
+ os.system("wget -q https://raw.githubusercontent.com/huggingface/diffusers/v0.17.0/scripts/convert_original_stable_diffusion_to_diffusers.py")
26
  os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --checkpoint_path model.ckpt --dump_path pt")
27
  return "convert to pt done!"
28
 
29
  def from_safetensors_to_pt():
30
+ os.system("wget -q https://raw.githubusercontent.com/huggingface/diffusers/v0.17.0/scripts/convert_original_stable_diffusion_to_diffusers.py")
31
  os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --from_safetensors --checkpoint_path model.safetensors --dump_path pt")
32
  return "convert to pt done!"
33
 
34
  def from_ckpt_to_safetensors():
35
+ os.system("wget -q https://raw.githubusercontent.com/huggingface/diffusers/v0.17.0/scripts/convert_original_stable_diffusion_to_diffusers.py")
36
  os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --checkpoint_path model.ckpt --to_safetensors --dump_path safetensors")
37
  return "convert to safetensors done!"
38
 
39
  def from_safetensors_to_safetensors():
40
+ os.system("wget -q https://raw.githubusercontent.com/huggingface/diffusers/v0.17.0/scripts/convert_original_stable_diffusion_to_diffusers.py")
41
  os.system(f"python3 convert_original_stable_diffusion_to_diffusers.py --from_safetensors --checkpoint_path model.safetensors --to_safetensors --dump_path safetensors")
42
  return "convert to safetensors done!"
43