Spaces:
Sleeping
Sleeping
Commit History
-
Deploy Takeoff AI Annotator
Verified signature8a66464
-
fix(annotator): autosave dir probe crashed on shallow paths (HF Space /app)β
MathewKasbarianparents[2] raises IndexError when app.py sits near the filesystem root β guard it. deploy_space.py now re-splits the subtree on every run and uses get_token() (HfFolder was removed from huggingface_hub).767f9c4 -
fix(annotator): execute review-canvas JS via Blocks head and add edit autosaveβ
MathewKasbarianThe canvas <script> was injected with gr.HTML, which Gradio mounts via innerHTML β browsers never execute scripts inserted that way, so the Review & Edit canvas was dead in every browser. Serve it through gr.Blocks(head=...) instead. Autosave checkpoints every annotated page to data/working_set/autosave/ on each mutating action (canonical label JSON, per-box status preserved for exact resume; pages with unreviewed machine boxes stay audit_status=machine). Disabled automatically off-repo (HF Space).280468b
-
feat(ai): tiled inference, machine API, and label JSON interchange in annotatorβ
MathewKasbarian- detection.py: detect_tiled (640x640 windows, stride 480, cross-tile NMS IoU 0.5); detect_rectangles auto-tiles images larger than one tile, fixing zero-detection on full sheets; render_pdf_page + pt/px converters; model resolution via FACADE_MODEL_REPO (HF Hub, revision-pinnable) with FACADE_MODEL_PATH override; CUDA device auto-detect. - app.py: all detect paths render at DETECTION_DPI=200 (Review tab scales back to its 100-DPI canvas space); hidden machine API /detect_image and /detect_page for gradio_client callers; Review tab exports/imports canonical per-page label JSON (PDF-point coords, provenance, rejected boxes) for the training pipeline. Verified: 229-box parity with the validated tiled baseline on testRollingPart5.pdf p1 via both API endpoints; label export/import round-trips.c640d68
-
fix(ai): restore HF Spaces YAML front-matter in annotator READMEβ
MathewKasbarian +1: Claude Sonnet 4.6Required by HF to identify the repo as a Gradio Space and trigger the correct build pipeline. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>43ad530
-
feat(ai): migrate annotator tool and training scripts into infra repoβ
MathewKasbarian +1: Claude Sonnet 4.6- tools/annotator/ β Gradio annotation UI (app.py, detection.py, requirements.txt, packages.txt) previously hosted as a standalone HF Space repo. Deploy to Infin8-AI/Annotation via git subtree push. - scripts/build_dataset_from_events.py β build YOLO dataset from events.jsonl - scripts/generate_training_data.py β auto-label PDFs via vector grid detection - scripts/train_facade_detector.py β train YOLO11n with CAD-optimised params - pyproject.toml β add per-file-ignores for tools/ and training scripts The from-annotation backend endpoint is already present in apps/tenant-core-api-lambda/src/features/frame_instances/router.py. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>470f937