gabboud commited on
Commit
76275b4
·
1 Parent(s): f19aa8b

fix path exists error

Browse files
Files changed (1) hide show
  1. utils/download_weights.py +1 -1
utils/download_weights.py CHANGED
@@ -16,7 +16,7 @@ def download_weights():
16
  checkpoint_dir = Path.home() / ".foundry" / "checkpoints"
17
  for model in MODELS:
18
  model_path = os.path.join(checkpoint_dir, model+".ckpt")
19
- if model_path.exists():
20
  print(f"{model} already exists at {model_path}, skipping download.")
21
  else:
22
  cmd = f"foundry install {model} --checkpoint-dir {checkpoint_dir}"
 
16
  checkpoint_dir = Path.home() / ".foundry" / "checkpoints"
17
  for model in MODELS:
18
  model_path = os.path.join(checkpoint_dir, model+".ckpt")
19
+ if os.path.exists(model_path):
20
  print(f"{model} already exists at {model_path}, skipping download.")
21
  else:
22
  cmd = f"foundry install {model} --checkpoint-dir {checkpoint_dir}"