[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107644":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},107644,"hmg-physical-quality-decision-ai","hyundaimotorgroup\u002Fhmg-physical-quality-decision-ai","hyundaimotorgroup","Detect physical objects as oriented boxes, judge GOOD\u002FBAD, with an uncertainty-gated reference-bank harness. Weld inspection is the first domain.",null,"Python",80,13,62,0,3,15,1,46.44,"Apache License 2.0",false,"main",true,[],"2026-11-07 03:48:35","2026-11-23 06:46:16","\u003Cdiv align=\"center\">\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Fbanner\u002Fbanner-en-dark.svg\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fbanner\u002Fbanner-en-light.svg\" width=\"860\" alt=\"Physical Quality Decision AI. See it. Judge it. Know when you are not sure.\">\n\u003C\u002Fpicture>\n\n**Photo or video in → oriented boxes, GOOD \u002F BAD verdicts and an honest uncertainty flag out.**\u003Cbr>\nPlain PyTorch · CPU or GPU · CLI, Python API and web UI.\n\n\u003Cp>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fversion-v0.1.0%20preview-orange\" alt=\"version\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fhyundaimotorgroup\u002Fhmg-physical-quality-decision-ai\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fhyundaimotorgroup\u002Fhmg-physical-quality-decision-ai\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg\" alt=\"ci\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Apache--2.0-blue\" alt=\"license\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-%E2%89%A53.10-3776AB?logo=python&logoColor=white\" alt=\"python\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPyTorch-CPU%20%7C%20GPU-EE4C2C?logo=pytorch&logoColor=white\" alt=\"pytorch\">\n\u003C\u002Fp>\n\n\u003Cp>\n  \u003Ca href=\"#see-it-in-action\">\u003Cb>Demo\u003C\u002Fb>\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"#quick-start\">\u003Cb>Quick start\u003C\u002Fb>\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"#how-it-works\">\u003Cb>How it works\u003C\u002Fb>\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"#results\">\u003Cb>Results\u003C\u002Fb>\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"#documentation\">\u003Cb>Docs\u003C\u002Fb>\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"README.ko.md\">\u003Cb>한국어\u003C\u002Fb>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cimg src=\"docs\u002Fassets\u002Fdemo.gif\" width=\"640\" alt=\"Input video (left) and inspection result with GOOD \u002F BAD oriented boxes (right)\">\n\n\u003C\u002Fdiv>\n\n> **v0.1 preview.** The classifier is in a mature state; the **detector is still being improved** (see [Known limitations](#known-limitations)). This is **decision support, not a certified or safety-certified inspection system**. Validate it on your own data and keep a human reviewer in the loop.\n\n---\n\n## See it in action\n\nHere is what the critters see: three frames taken from the demo clip above. **Red = BAD, green = GOOD.** Left is the camera frame, right is the pipeline's output for it.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fdesign\u002Fgallery.svg\" width=\"900\" alt=\"Three demo frames. Left: camera frame. Right: oriented boxes, red for BAD and green for GOOD. Frames 0, 24 and 44.\">\n\u003C\u002Fp>\n\nEach object gets its own oriented box and verdict. One BAD object is enough to make the whole item BAD, and a crop the classifier is unsure about is checked against the reference bank. Expect misses and loose boxes too (see [Known limitations](#known-limitations)).\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fdesign\u002Fdivider.svg\" width=\"640\" alt=\"\">\u003C\u002Fp>\n\n## Why this project\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"50%\" valign=\"top\">\n\n**🎯 Oriented boxes**\u003Cbr>\nObjects are detected as rotated boxes on tiled images, so small and elongated targets are not lost.\n\n\u003C\u002Ftd>\n\u003Ctd width=\"50%\" valign=\"top\">\n\n**🧭 Honest decisions**\u003Cbr>\nWhen the classifier is unsure (entropy above `alpha`), the crop is matched against a curated reference bank and the top-k neighbours vote.\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd valign=\"top\">\n\n**🛡️ Safety-first aggregation**\u003Cbr>\nOne BAD object makes the whole item BAD. This favours sensitivity over silence.\n\n\u003C\u002Ftd>\n\u003Ctd valign=\"top\">\n\n**🎞️ Photo and video**\u003Cbr>\nPhotometric test-time augmentation and cross-frame tracking are built in.\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd valign=\"top\">\n\n**🧩 Domain-agnostic core**\u003Cbr>\nEverything not specific to one kind of object is shared. **Weld inspection is the first domain**; a new one plugs in with a small `DomainSpec` ([guide](docs\u002FDOMAIN_PLUGINS.md)).\n\n\u003C\u002Ftd>\n\u003Ctd valign=\"top\">\n\n**📦 Ready to use**\u003Cbr>\nCLI, Python API, a web UI with reports, and released weights with sha256-verified manifests.\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fdesign\u002Fdivider.svg\" width=\"640\" alt=\"\">\u003C\u002Fp>\n\n## How it works\n\n\u003Cp align=\"center\">\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Fdesign\u002Fpipeline-en-dark.svg\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fdesign\u002Fpipeline-en-light.svg\" width=\"900\" alt=\"Pipeline: photo or video, tiled oriented-box detection, perspective crop, five-view classification with entropy. Low entropy goes to the verdict, high entropy is settled by a reference bank vote. Any BAD object makes the item BAD.\">\n\u003C\u002Fpicture>\n\u003C\u002Fp>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Stage by stage\u003C\u002Fb>\u003C\u002Fsummary>\n\n| Stage | What happens |\n|---|---|\n| **1. Detect** | A tiled oriented-box detector finds candidates, merges duplicates across tiles and re-checks each one on a padded full-resolution crop. |\n| **2. Crop** | Each box is perspective-warped to an upright rectangle. |\n| **3. Classify** | Five photometric views are averaged into GOOD \u002F BAD probabilities plus an entropy score. |\n| **4. Gate** | Low entropy: the classifier decides. High entropy: the crop's embedding is compared with the reference bank and the nearest neighbours vote (`used_retrieval=True`). |\n| **5. Aggregate** | One BAD object makes the item BAD. In video, one BAD frame makes a tracked object BAD. Ties favour BAD. |\n\n\u003C\u002Fdetails>\n\nFull detail: [docs\u002Farchitecture.md](docs\u002Farchitecture.md).\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fdesign\u002Fdivider.svg\" width=\"640\" alt=\"\">\u003C\u002Fp>\n\n## Quick start\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fhyundaimotorgroup\u002Fhmg-physical-quality-decision-ai.git\ncd hmg-physical-quality-decision-ai\npip install -e \".[web]\"              # Python >= 3.10, CPU or GPU torch\npqdai verify-weights --domain weld   # sha256 check of the bundled weights\n```\n\n> Weights live in `weights\u002Fweld\u002F`. If `verify-weights` says a file looks like a git-lfs pointer, run `git lfs install && git lfs pull`.\n\n\u003Cdetails open>\n\u003Csummary>\u003Cb>Command line\u003C\u002Fb>\u003C\u002Fsummary>\n\n```bash\npqdai domains                                             # lists: weld, example_template\npqdai bank eval --domain weld                             # leave-one-out accuracy of the bundled bank (~0.994)\npqdai image --image photo.jpg --out out.jpg --json out.json\npqdai video --video clip.mp4 --out runs\u002Fclip --max-seconds 30\n```\n\nA photo with no detections prints `overall: GOOD (0 object(s))`. That means *nothing was found*, not that something was verified, so always check the object count.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Python API\u003C\u002Fb>\u003C\u002Fsummary>\n\n```python\nfrom pqdai.core.runtime import build_pipeline\n\nverdict = build_pipeline(\"weld\").judge_image(\"photo.jpg\")\nprint(verdict.overall_class_name,\n      [(o.class_name, o.detection_confidence) for o in verdict.objects])\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Web UI\u003C\u002Fb>\u003C\u002Fsummary>\n\n```bash\npqdai serve --domain weld            # http:\u002F\u002F127.0.0.1:8000\n```\n\nUpload images or videos, follow progress, and open the result overlay and report. The login is a name picker **without a password**, so run it on a trusted network or behind an authenticating reverse proxy. See [docs\u002FWEBAPP.md](docs\u002FWEBAPP.md) and [SECURITY.md](.github\u002FSECURITY.md).\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Tune the reference bank for your site\u003C\u002Fb>\u003C\u002Fsummary>\n\n```bash\npqdai bank build --crops my_crops\u002F --out my_bank.npz     # one sub-folder per class name\npqdai bank info  --bank my_bank.npz\npqdai bank merge a.npz b.npz --out merged.npz\n```\n\nDetails: [docs\u002FREFERENCE_BANK.md](docs\u002FREFERENCE_BANK.md).\n\n\u003C\u002Fdetails>\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fdesign\u002Fdivider.svg\" width=\"640\" alt=\"\">\u003C\u002Fp>\n\n## Results\n\n\u003Cp align=\"center\">\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Fdesign\u002Fresults-en-dark.svg\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fdesign\u002Fresults-en-light.svg\" width=\"760\" alt=\"Bar chart of held-out results: classifier accuracy 93.3 percent, pipeline agreement 96.6 percent, BAD recall about 60 percent on only 21 samples, detector recall 79.6 percent at IoU 0.5 and 46.1 percent at IoU 0.7, reference bank leave-one-out accuracy 0.994.\">\n\u003C\u002Fpicture>\n\u003C\u002Fp>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Same numbers as a table\u003C\u002Fb>\u003C\u002Fsummary>\n\n| Metric (v0.1.0 weights, held-out validation data) | Value |\n|---|:---:|\n| Classifier: accuracy vs original labels | **93.3 %** |\n| Classifier: pipeline-level agreement (TTA + bank gate) | **96.6 %** |\n| Detector: recall @ IoU 0.5 (99 photos, full tiled pipeline) | **79.6 %** |\n| Detector: recall @ IoU 0.7 | **46.1 %** |\n| Reference bank: leave-one-out accuracy (`pqdai bank eval`) | **~0.994** |\n\n\u003C\u002Fdetails>\n\nEvaluation conditions, the detector's precision and the caveats behind each number are in the [model card](docs\u002FMODEL_CARD.md). Treat these figures as indicative, not as guarantees.\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fdesign\u002Fdivider.svg\" width=\"640\" alt=\"\">\u003C\u002Fp>\n\n## Known limitations\n\n> 🐾 *From the herd: \"If we're not sure, we'll say so, and a human gets the last word.\"*\n\n* **Detector boxes are loose at tight IoU.** Recall falls from 79.6 % at IoU 0.5 to 46.1 % at IoU 0.7, and confidence scores are on the low side, so fixed thresholds (`--conf`, `--verify-conf`) may need re-tuning on your data.\n* **BAD is under-called.** BAD recall is about 60 % on a small validation subset with only 21 BAD samples, so that figure is noisy. A GOOD verdict is not proof of quality.\n* **Rebuild the reference bank for your site** and have a person review borderline cases. The entropy gate marks the uncertain crops (`used_retrieval=True`).\n* **Limited data:** phone photos and video of a limited set of workpieces and lighting. Expect degradation elsewhere.\n* **Intended use:** decision support only. Not certified, not safety-certified. Validate on your own data before relying on it.\n\n## Repository layout\n\n```text\nsrc\u002Fpqdai\u002F      core\u002F models\u002F video\u002F domains\u002F cli.py     library\nwebapp\u002F         FastAPI backend + static front end        web UI\nweights\u002F\u003Cdom>\u002F  safetensors + JSON manifests              released models\ndocs\u002F           architecture, plugins, bank, video, web app, model card, licensing\ntests\u002F          CPU-only tests\n```\n\n## Documentation\n\n| | |\n|---|---|\n| [User guide](docs\u002Fuser_guide.html) | End-to-end walkthrough of the web app |\n| [Architecture](docs\u002Farchitecture.md) | Core harness and domain plugins |\n| [Model card](docs\u002FMODEL_CARD.md) | Models, provenance, intended use, metrics |\n| [Domain plugins](docs\u002FDOMAIN_PLUGINS.md) | Add a new object type with a `DomainSpec` |\n| [Reference bank](docs\u002FREFERENCE_BANK.md) · [Video](docs\u002FVIDEO.md) · [Web app](docs\u002FWEBAPP.md) | Feature guides |\n| [Detector comparison](docs\u002FDETECTOR_COMPARISON.md) | Detector notes |\n| [Contributing](.github\u002FCONTRIBUTING.md) · [Security](.github\u002FSECURITY.md) · [Changelog](CHANGELOG.md) | Project policies |\n\nContributing setup: `pip install -e \".[dev,web]\"`, then `ruff check src tests webapp` and `pytest` (CPU only).\n\n## Contributing\n\nContributions are welcome.\n\nBefore contributing, please review:\n\n- [Contributing Guide](.github\u002FCONTRIBUTING.md)\n- [Contributor License Agreement (Korean)](https:\u002F\u002Fgithub.com\u002Fhyundaimotorgroup\u002F.github\u002Fblob\u002Fmain\u002Flegal\u002FCLA-KOR.md)\n- [Contributor License Agreement (English)](https:\u002F\u002Fgithub.com\u002Fhyundaimotorgroup\u002F.github\u002Fblob\u002Fmain\u002Flegal\u002FCLA-ENG.md)\n\nIf CLA verification is enabled, contributors may be required to complete the Contributor License Agreement (CLA) process before their pull request can be merged.\n\n## Project Policies\n\n- [Code of Conduct](.github\u002FCODE_OF_CONDUCT.md)\n- [Security Policy](.github\u002FSECURITY.md)\n\n## Support\n\nBefore creating a new issue, please search existing issues to avoid duplicates.\n\nFor bug reports, feature requests, and general project discussions:\n\n- [GitHub Issues](https:\u002F\u002Fgithub.com\u002Fhyundaimotorgroup\u002Fhmg-physical-quality-decision-ai\u002Fissues)\n- [Issue Templates](.github\u002FISSUE_TEMPLATE\u002F)\n\nFor security concerns:\n\n- Follow the instructions in [Security Policy](.github\u002FSECURITY.md).\n\n\n## Releases\n\nRelease notes and version history are available in the following locations:\n- [Changelog](.\u002FCHANGELOG.md)\n- [Release Notes](https:\u002F\u002Fgithub.com\u002Fhyundaimotorgroup\u002Fhmg-physical-quality-decision-ai\u002Freleases)\n\nThis project follows [Semantic Versioning](https:\u002F\u002Fsemver.org\u002F).\n\n\n## License\n\nApache-2.0 for code and weights ([LICENSE](LICENSE), [docs\u002FLICENSING.md](docs\u002FLICENSING.md)). Only inference code and weights are published; model training code is not part of this repository. Third-party dependency licenses are listed in [THIRD_PARTY_LICENSES](THIRD_PARTY_LICENSES).\n\n\u003Cdiv align=\"center\">\n\u003Csub>Made with care, curiosity and a healthy dose of doubt. 🐾\u003C\u002Fsub>\n\u003C\u002Fdiv>\n","这是一个面向工业物理质量检测的AI决策系统，专为识别带方向性的目标物体（如焊缝）并自动判定其质量状态（GOOD\u002FBAD）而设计。核心功能包括基于PyTorch的轻量级 oriented object detection（定向框检测）、不确定性感知分类（通过熵阈值触发参考库比对），以及支持CLI、Python API和Web UI的多模态交互。技术特点涵盖CPU\u002FGPU通用部署、参考库驱动的不确定性缓解机制，适用于焊接质检等高精度工业视觉场景，需配合人工复核使用。",2,"2026-11-24 04:32:30","CREATED_QUERY"]