| import os | |
| results_dir = r"D:\svd_project\results" | |
| removed = 0 | |
| freed = 0 | |
| for root, dirs, files in os.walk(results_dir): | |
| if "baseline" in root.lower(): | |
| continue | |
| for f in files: | |
| if f.endswith((".pt", ".bin", ".safetensors")): | |
| p = os.path.join(root, f) | |
| try: | |
| sz = os.path.getsize(p) | |
| os.remove(p) | |
| removed += 1 | |
| freed += sz | |
| except Exception as e: | |
| pass | |
| print(f"Deleted {removed} files, freed {freed / (1024*1024):.2f} MB") | |
Xet Storage Details
- Size:
- 555 Bytes
- Xet hash:
- 1b680348cdf26583f8c294c1c8217e8352cf55248efe092f0f040981a2822ead
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.