WithAnyone commited on
Commit
3ea8336
·
verified ·
1 Parent(s): 5688605

Update withanyone/flux/util.py

Browse files
Files changed (1) hide show
  1. withanyone/flux/util.py +2 -1
withanyone/flux/util.py CHANGED
@@ -228,7 +228,8 @@ def load_flow_model_no_lora(
228
  ckpt_path = hf_hub_download(configs[name].repo_id, configs[name].repo_flow.replace("sft", "safetensors"))
229
  print("Downloading checkpoint from HF:", ckpt_path)
230
  # remove xet to save space
231
- os.remove("/home/user/.cache/huggingface/xet/")
 
232
  else:
233
  ckpt_path = os.path.join(path, "flux1-dev.safetensors") if path is not None else None
234
 
 
228
  ckpt_path = hf_hub_download(configs[name].repo_id, configs[name].repo_flow.replace("sft", "safetensors"))
229
  print("Downloading checkpoint from HF:", ckpt_path)
230
  # remove xet to save space
231
+ import shutil
232
+ shutil.rmtree("/home/user/.cache/huggingface/xet/")
233
  else:
234
  ckpt_path = os.path.join(path, "flux1-dev.safetensors") if path is not None else None
235