Spaces:
Runtime error
Runtime error
Commit History
-
refactor: merge verdicts into track responses and remove dead depth code
Root Cause A: get_track_data() now merges verdict fields (satisfies, reason, mission_relevant, features, gpt_raw) onto tracks server-side, eliminating the fragile client-side-only merging that caused missing fields and race conditions. Dead code cleanup (-1,274 lines): - Delete inspection/pointcloud.py (orphaned 538-line module) - Delete tests/test_inspection_pointcloud.py (tested removed code) - Simplify pointcloud endpoint to Tripo3D-only (400 if no API key) - Remove depth 3D UI, renderLegacy3D, "Compute 3D" button - Remove partial_success field and stale depth comments - Remove unused depth param from createTrack mock data - Fix run_inference call with stale depth positional args Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>b378bb6
-
refactor: remove depth estimation pipeline entirely
Depth estimation (DepthAnything V2) was disabled by default, provided only relative visualization values (hardcoded focal_length=1.0), and was never used for actual distance reasoning (GPT handles that). Removed: - models/depth_estimators/ directory (4 files) - inspection/depth.py (caching, inference, colorization) - tests/test_inspection_depth.py - All depth params from /detect and /detect/async endpoints - Depth model loading and per-frame inference in inference.py - IncrementalDepthStats, colorize_depth_map, _attach_depth_metrics - Depth toggle, fetchDepth, renderDepthHeatmap, renderRealDepth from frontend - Depth quadrant from inspect panel (now 3 quadrants: seg, edge, 3D) - Depth fields from JobInfo dataclass - Depth-based 3D fallback in pointcloud endpoint (Tripo3D only now) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1fad3ed
-
feat: integrate Tripo3D generative 3D models into inspection panel
Zhen Ye +1: Claude Opus 4.6 (1M context)Replace depth-based back-projection with Tripo3D's image-to-3D API for the 3D quadrant. Falls back to the existing depth mesh when the API key is not set or generation fails. Backend: - New inspection/tripo3d.py: API client with upload, generate, poll, download flow + in-memory LRU cache (50 entries) - Modified pointcloud endpoint: tries Tripo3D first, returns GLB binary with Content-Type: model/gltf-binary, falls back to depth JSON Frontend: - New GLTFLoader vendor file (UMD) for parsing GLB models - fetchPointCloud detects Content-Type to handle GLB vs JSON responses - New renderGLB() in inspection-3d.js with full scene setup - Dispatch logic in inspection.js routes to renderGLB vs legacy render - Texture disposal added for GLB model cleanup Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>930a645
-
feat(inspection): add super-resolution and 3D point cloud (Phase 3)
Zhen Ye +1: Claude Opus 4.6 (1M context)Backend: - inspection/superres.py: Real-ESRGAN x4 with cv2 Lanczos4 fallback, per-request caching, PNG output with dimension headers - inspection/pointcloud.py: depth-to-3D pinhole projection, mask or bbox region selection, subsampling, base64 serialization - inspection/router.py: POST /inspect/super-resolve and POST /inspect/pointcloud - 31 new tests across both modules Frontend: - inspection-3d.js: Three.js point cloud viewer with OrbitControls, lazy CDN loading, grid/axis helpers, fog, auto-camera positioning, proper resource cleanup on dispose - inspection-renders.js: enhanced super-res display with dimension labels - index.html: added inspection-3d.js script tag Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>0802544 -
feat(inspection): add depth analysis and attention heatmap endpoints (Phase 2)
Zhen Ye +1: Claude Opus 4.6 (1M context)Backend: - inspection/depth.py: on-demand DepthAnythingV2 inference with LRU caching, viridis colorization, stats computation, raw/json/colorized response formats - inspection/attention.py: GradCAM for DETR/GDINO, saliency for YOLO, gaussian fallback, overlay generation, per-request caching - inspection/router.py: GET /inspect/depth and GET /inspect/attention endpoints - 28 new tests across depth and attention modules Frontend: - inspection-api.js: CORS fallback for depth binary format, explicit format params - inspection-renders.js: depth legend with min/max meters, track depth stats, attention legend with peak/avg intensity, improved alpha blending - inspection.js: mode-specific loading messages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>5338c46 -
feat(inspection): add RLE mask encode/decode module
Zhen Ye +1: Claude Opus 4.6 (1M context)Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>9f46868 -
feat(inspection): add frame extraction and cropping module
Zhen Ye +1: Claude Opus 4.6 (1M context)Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>157bd4f