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:
@@ -256,7 +256,7 @@ def test_similarity_search(
|
||||
result = cur.fetchone()
|
||||
|
||||
if not result or not result[0]:
|
||||
print(f"⚠️ Identity embedding not found")
|
||||
print("⚠️ Identity embedding not found")
|
||||
return []
|
||||
|
||||
stored_embedding_raw = result[0]
|
||||
@@ -323,7 +323,7 @@ def main():
|
||||
logo_path = TEMP_DIR / f"{name.replace(' ', '_')}.png"
|
||||
|
||||
if not logo_path.exists():
|
||||
print(f"\n🔧 Downloading logo...")
|
||||
print("\n🔧 Downloading logo...")
|
||||
if not download_image(logo_url, logo_path):
|
||||
sys.exit(1)
|
||||
|
||||
@@ -334,18 +334,18 @@ def main():
|
||||
if args.performance:
|
||||
perf_result = test_mps_performance(model, processor, device, logo_path, iterations=10)
|
||||
if perf_result:
|
||||
print(f"\n📊 Performance Summary:")
|
||||
print("\n📊 Performance Summary:")
|
||||
print(f" MPS: {perf_result['mps_time']:.4f}s/img")
|
||||
print(f" CPU: {perf_result['cpu_time']:.4f}s/img")
|
||||
print(f" Speedup: {perf_result['speedup']:.2f}x")
|
||||
|
||||
print(f"\n🔧 Extracting CLIP embedding...")
|
||||
print("\n🔧 Extracting CLIP embedding...")
|
||||
embedding = extract_clip_embedding(model, processor, device, logo_path)
|
||||
|
||||
if not embedding:
|
||||
sys.exit(1)
|
||||
|
||||
print(f"\n🔧 Registering to database...")
|
||||
print("\n🔧 Registering to database...")
|
||||
uuid = register_logo_identity_to_db(
|
||||
name=name,
|
||||
logo_url=logo_url,
|
||||
@@ -354,13 +354,13 @@ def main():
|
||||
)
|
||||
|
||||
if uuid:
|
||||
print(f"\n🎉 Integration completed!")
|
||||
print("\n🎉 Integration completed!")
|
||||
print(f" Identity: {name}")
|
||||
print(f" UUID: {uuid}")
|
||||
print(f" Embedding: {len(embedding)}-dim")
|
||||
print(f" URL: {logo_url}")
|
||||
|
||||
print(f"\n🔧 Testing similarity search...")
|
||||
print("\n🔧 Testing similarity search...")
|
||||
test_embeddings = [
|
||||
embedding,
|
||||
[0.1] * 768,
|
||||
@@ -369,9 +369,9 @@ def main():
|
||||
matches = test_similarity_search(uuid, test_embeddings, threshold=0.85, schema=args.schema)
|
||||
|
||||
if matches:
|
||||
print(f"\n✅ Similarity search test passed")
|
||||
print("\n✅ Similarity search test passed")
|
||||
else:
|
||||
print(f"\n❌ Integration failed")
|
||||
print("\n❌ Integration failed")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user