Spaces:
Runtime error
Runtime error
Commit History
-
fix: handle degenerate bbox and unhandled exceptions in inspection frame endpoint
Zhen Ye +1: Claude Opus 4.6 (1M context)Cast bbox coordinates to int in crop_frame to prevent numpy float indexing errors. Add error handling for ValueError/OSError in the /inspect/frame endpoint to return 422 instead of 500 when frame extraction or cropping fails. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>a2f4d4e -
fix: forensic code trace fixes across all inspection modules
ClaudeUnverified signatureCritical: - masks.py: fix RLE encode double leading zero that corrupted masks starting with foreground pixels; vectorize RLE loop with numpy - router.py: add _parse_track_id() to prevent unhandled ValueError crashes on malformed track IDs (7 locations) High: - attention.py: remove double inference in YOLO saliency, remove dead code (PIL/torchvision imports), rename GradCAMExtractor to ActivationSaliencyExtractor (no gradients were ever computed), remove unused backward hook, add query parameter for Grounding DINO, switch forward pass to torch.no_grad() - router.py: add _find_track() helper fixing instance_id=0 being skipped due to falsy `or` fallback Medium: - depth.py, attention.py, superres.py, pointcloud.py: convert all caches from dict to OrderedDict with move_to_end for LRU eviction - depth.py, superres.py, sam2_mask.py: store (model, lock) tuples instead of monkey-patching .lock attribute onto model instances - pointcloud.py: add depth_map/color_image shape va…9aa33d8 -
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