How hyrsta/aiws works
AIWS integrates an online welding-vision pipeline with an offline CAD-reconstruction workflow; the documented current focus is offline reconstruction. In the GUI workflow, an operator submits images and a mask or an existing mesh, starts a reconstruction job, monitors its stages, and inspects downloadable results and metrics. Offline tooling also prepares datasets, reconstructs meshes with SAM3D, adapts mesh outputs for Cadrille PC/IMG inference, and evaluates or refines results. The GUI/backend relationship and broad offline stages are documented, but several script-level handoffs were not excerpted, so those links are omitted or marked unverified.
Main entry points: App.tsx Job workspace · sam3d_batch.py SAM3D mesh generation · cadrille_batch.py Cadrille batch runs · cadrille_infer_wrapper.py Cadrille inference
Components 25
Job GUI
- Job workspace
gui/frontend/src/App.tsx - Job setup
gui/frontend/src/views/ConfigureView.tsx - API client
gui/frontend/src/api/client.ts - FastAPI service
gui/backend/app.py - Reconstruction runner
gui/backend/simple_reconstruct_job.py - Live progress
gui/frontend/src/views/LiveView.tsx - Result inspection
gui/frontend/src/views/ResultView.tsx
Offline CAD
- SAM3D mesh generation
scripts/sam3d_batch.py - Mesh-to-Cadrille prep
scripts/sam3d_cadrille_bridge.py - Cadrille batch runs
scripts/cadrille_batch.py - Cadrille inference
scripts/cadrille_infer_wrapper.py - Reproducible sampling
scripts/cadrille_seeding.py - Dataset preparation
scripts/dataset_usable_view_build.py - Instance masks
scripts/dataset_instance_masks_generate.py
CAD Refinement
- Pipeline analysis
scripts/cadrille_run_metrics_analysis.py - Candidate selection
scripts/cadrille_reselect.py - Metric postscale
scripts/cadrille_metric_postscale.py - Body cleanup
scripts/cadrille_body_cleanup.py - Stage metrics
scripts/cadrille_stage_metrics.py
Online Welding
- RGB-D observations
- Recognition and segmentation
- Pose estimation and alignment
- Localization and weld planning
- CAD model database
Other components
- Operator
Connections 24
- Operator → Job workspace: uses
README.md - Job workspace → Job setup: shows
gui/frontend/src/App.tsx - Job setup → API client: submits job
- API client → FastAPI service: HTTP requests
README.md - FastAPI service → Reconstruction runner: launches job
- Job workspace → Live progress: shows progress
gui/frontend/src/App.tsx - Job workspace → Result inspection: shows results
gui/frontend/src/App.tsx - Reconstruction runner → SAM3D mesh generation: runs reconstruction
- SAM3D mesh generation → Mesh-to-Cadrille prep: produces mesh input
README.md - Mesh-to-Cadrille prep → Cadrille batch runs: prepares split
scripts/cadrille_batch.py - Cadrille batch runs → Cadrille inference: launches runner
scripts/cadrille_batch.py - Cadrille inference → Reproducible sampling: uses seeded data
scripts/cadrille_infer_wrapper.py - Dataset preparation → Instance masks: prepares data
- SAM3D mesh generation → Pipeline analysis: analyzes outputs
README.md - Cadrille batch runs → Pipeline analysis: analyzes outputs
README.md - Cadrille inference → Candidate selection: selects candidates
- Candidate selection → Metric postscale: refines scale
- Metric postscale → Body cleanup: refines geometry
- Body cleanup → Stage metrics: scores stages
scripts/cadrille_body_cleanup.py - SAM3D mesh generation → CAD model database: builds CAD assets
README.md - CAD model database → Pose estimation and alignment: provides CAD models
README.md - RGB-D observations → Recognition and segmentation: observes workpiece
README.md - Recognition and segmentation → Pose estimation and alignment: estimates pose
README.md - Pose estimation and alignment → Localization and weld planning: localizes and plans
README.md