cleanup: remove dead code and duplicate docs

- Remove session-ses_2f27.md (161KB raw session log)
- Remove 49 ROOT_* duplicate files across REFERENCE/
- Remove 14 duplicate files between REFERENCE/ root and history/
- Remove asr_legacy.rs (dead code, replaced by asr.rs)
- Remove src/core/worker/ (duplicate JobWorker)
- Remove src/core/layers/ (empty directory)
- Remove 4 .bak files in src/
- Remove 7 dead private methods in worker/processor.rs
- Remove backup directory from git tracking
This commit is contained in:
Warren
2026-05-04 01:31:21 +08:00
parent ee81e343ce
commit e75c4d6f07
3270 changed files with 35190 additions and 53367 deletions

View File

@@ -104,7 +104,6 @@ def download_image(image_url: str, save_path: Path) -> bool:
def load_insightface():
"""Load InsightFace model"""
try:
import insightface
from insightface.app import FaceAnalysis
print("🔧 Loading InsightFace buffalo_l...")
@@ -351,18 +350,18 @@ def main():
print(f" [{i+1}/{min(len(images), args.limit)}] {file_path}")
if not local_path.exists():
print(f" 🔧 Downloading...")
print(" 🔧 Downloading...")
if not download_image(image_url, local_path):
continue
print(f" 🔧 Extracting embedding...")
print(" 🔧 Extracting embedding...")
result = extract_face_embedding(app, local_path)
if result:
face_embeddings.append(result)
print(f" ✅ Success: angle={result['angle']}, quality={result['quality_score']:.2f}")
else:
print(f" ⚠️ Failed")
print(" ⚠️ Failed")
if not face_embeddings:
print("❌ No valid face embeddings extracted")
@@ -386,7 +385,7 @@ def main():
)
if uuid:
print(f"\n🎉 Integration completed!")
print("\n🎉 Integration completed!")
print(f" Identity: {name}")
print(f" UUID: {uuid}")
print(f" TMDB ID: {tmdb_id}")