Remove obsolete implementation and simplify project structure

This commit is contained in:
2026-08-21 09:46:50 +08:00
parent b5a2f9690c
commit af5603045c
100 changed files with 365 additions and 365 deletions

View File

@@ -1,4 +1,4 @@
"""Prepare SnapForm ONNX models and sync them to OmooLab R2."""
"""Prepare AnyImage ONNX models and sync them to OmooLab R2."""
import argparse
import hashlib
@@ -114,7 +114,7 @@ def download_once(model, url):
destination.parent.mkdir(parents=True, exist_ok=True)
temporary = destination.with_suffix(".onnx.part")
temporary.unlink(missing_ok=True)
request = Request(url, headers={"User-Agent": "SnapForm model sync"})
request = Request(url, headers={"User-Agent": "AnyImage model sync"})
print(f"Download: {url}")
downloaded = 0
digest = hashlib.sha256()