ProjectsAI & Agents

AIO Process Optimization

Prototyping ground for AOI/AI concepts, built as clean and reproducible building blocks. Proprietary — source is published for reference only.

Repository
8
Stars
0
Forks
Feb 2026
Created
2 days ago
Last push

Readme

This readme embeds 9 images from GitHub. They only load when you click below.

Python Version Platform Platform Status PyTorch ResNet18

Ask DeepWiki

A-AIO-process-optimization-and-training

Testing/prototyping repository for AOI/AI concepts, focused on reproducible pipelines and practical model iteration.

Quick Links

Contents

Current Status

Last updated: 2026-02-20

Topic Status Link
Arena leaderboard Current top ranking based on latest QFN crawler fine-tune boost Simple-Sim/ARENA_REPORT.md
Active research Extended image filter robustness + QFN-focused fine-tuning Simple-Sim/docs/training_logs/INDEX.md
Production recommendation Prefer single cross-profile models for robustness/simplicity Final Verdict

Projects

Simple-Sim Pipeline Dashboard

Project Purpose Start Here
Simple-Sim Sandbox for synthetic data generation, training, evaluation, and model selection via arena workflows Simple-Sim/README.md

Arena

Top Avg Accuracy

Research Updates

Current Focus (2026-02-20)

QFN crawler fine-tune boost with additional clean no-image-filter samples (QFN32-2D +50, QFN-3D +50) reached the current top arena ranking.
Log: 2026-02-20-Training-QFN-Crawler-NoImageFilter-Boost.md

Recent Logs

Model Strategy

Current conclusions: Final Verdict, Training Conclusions

Bundled Models (Multi-Profile)

  • Require an upstream component/object classifier for routing.
  • Higher per-component peak accuracy.
  • Larger footprint (multiple sub-models).

Single Models (Cross-Profile)

  • Self-contained (no external classifier).
  • Trained across all profiles and defect types.
  • Smaller footprint.
  • Slightly lower per-component peak accuracy, but stronger on randomized mixed/unknown component recognition.

Recommendation: use single cross-profile models for deployment when robustness and simplicity are prioritized.

License and Usage

This repository is proprietary and not open-source.

Allowed

  • Read code and documentation.
  • Discuss concepts and provide feedback.
  • Link to this repository.

Not Allowed (without prior written permission)

  • Use this code (whole or partial) in projects/products/services.
  • Extract or reuse modules, files, snippets, or components.
  • Copy, modify, distribute, sublicense, or republish.
  • Use for commercial or production deployments.

Note: public visibility on GitHub does not grant reuse rights beyond viewing the repository.

Permission requests: arn-c0de@protonmail.com
See also: CONTRIBUTING.md

Changelog

Simple-Sim/CHANGELOG.md

Changelog

All notable changes to Simple-Sim are documented in this file.

[Unreleased]

Changed (renderer version 4, third audit 2026-11-10)

  • Renderer version 4 (pixels change, generate --extend refuses older datasets; render goldens regenerated):
    • The render pass draws from its own random stream (rng.render_seed: default_rng([seed, 1]); Blender board bake and post filters STREAM_BAKE / STREAM_POST; export-deepvision _SALT_RENDER). It used to restart default_rng(seed), the stream that had sampled geometry and defect, so its first draws repeated those numbers: camera tilt / azimuth / crop were functions of pad and body size (correlation 1.0), the mask colour jitter of the shift, and for MISALIGNED of the shift-vs-rotation choice.
    • CORNER_LIFT: the 18 px cap of the lift is in camera pixels (lifted_corner_geometry(scale=)); at supersampling 2 / 3 / 4 the raised corner was a half / third / quarter as large. SOT-23: the 10 px minimum gap between pins 1 and 2 scales the same way (footprint_pads(scale=)).
    • Realism filter mode: the 20 % tail of _tri_sample goes to either side for signed ranges (rotation jitter, perspective angles, distortion, hue shift were biased to positive values: rotation [-4, 4] had mean +0.4 deg and never went below -1.2); magnitudes (blur, noise) are unchanged.
    • Flat style and the Blender body use the sub-pixel placement of the label (body_geometry -> center_f); rounding both axes moved the body up to 0.7 px, across the tolerance with placement_sampling: continuous (12 % of OK samples drawn outside it).
  • batch-predict logs a component-profile mismatch between checkpoint and dataset and stores it as profile_mismatch in the report (no error: cross-dataset comparisons are intended).
  • GUI pipeline tab: a single-profile run uses the config of the Config field when it belongs to the profile (and backend); it was replaced by the alphabetically first config of the profile, so the dv_* / phone / cross-domain configs could not be run from the GUI. The used config is logged as [config].
  • GUI Weights tab: Delete / Rename only for checkpoints in sub-folders of outputs/models (versions/, imports/), as the dialogs say; the active <dataset>.pt models in the root are no longer deletable from there.
  • update-sample-gallery moves the old gallery aside and restores it when the run fails (a missing Blender left the gallery deleted).

Fixed (third audit 2026-11-10: extend, resume, report history, sim-to-real tools, GUI)

  • generate --extend: refuses a config with another roi.width_px / height_px / mm_per_px (part of render_options.look_options; mixed image sizes broke batching in training, validate passed); a class the dataset did not have yet is added to its config.yaml (training reads the class list there and dropped the new samples as "unknown label"); meta.jsonl / labels.jsonl are extended through temp files and moved in together (rows.extend_jsonl_pair; a failing append left meta rows without labels); an existing empty --out directory counts as a fresh dataset; extending a multi-profile (v2) dataset keeps manifest keys of other tools (real_crops of mix-real).
  • generate / generate-profile-dataset refuse to replace a non-empty --out that is not a dataset (dataset_store.check_replaceable; --out outputs/sim_data/runs deleted every run in it). generate-profile-dataset no longer needs a domain literally named domain_A.
  • gen_progress telemetry is sent from the render pass (render_backends.render_opencv_2d, fields done / total / image_root) instead of the planning loop, which reported the sampling rate and images that did not exist yet (GUI: thousands of "img/s" for a moment, no live thumbnails, or the previous dataset's images).
  • validate (rows.validate_jsonl_pair) fails on duplicate sample ids.
  • Training: a resumed best val F1 only counts when the checkpoint was trained on this dataset (path and manifest hash); warm-starting on another dataset with --out-mode best never rewrote --out. A resume into a new --out keeps the best epoch of this run there (it kept the first one). An empty train / val split is an error (--out silently stayed at epoch 1 with val F1 0).
  • Reports: reports.report_search_dirs covers the sub-folders of outputs/models (versions/<name>/, imports/, bundle dirs), so the Arena, status and the Weights tab find the reports of models stored there. batch-predict: the default history dirs include the report's own output dir (--out-dir, i.e. the Weights tab, never saw its earlier reports); --max-samples quick checks and reports with excluded samples are left out of the history ranking.
  • Photoreal camera: apply_view broadcast add restored (a lint autofix had turned it into list unpacking: AttributeError for every tilted / zoomed view, i.e. all dv_*, quins, phone configs). board.placement: no ValueError when the neighbour-part count rounds to 0 (canvas much smaller than the ROI). 2D previews sample defects with the config's defects.placement_sampling / defects.units.
  • Tools: dv-crops removes crops of an earlier export whose review changed or whose folder was renamed (they stayed under two labels; summary.json -> removed_stale) and accepts rows with run instead of board. sim-to-real: the 1-NN accuracy thins the larger set evenly instead of taking its (class-ordered) prefix. sim-to-real, calibrate-camera, look-stats skip the real crops mix-real put into <dataset>/images/real/ (images.list_synthetic_images). calibrate-camera --config converts the measured blur offset from ROI to sensor pixels (capture_scale; dv_* looks got ~4x the blur). eval-real: --limit 0 means all, ensembles use the ROI size of their sub-models. render-debug-previews no longer exits 1 when no display / tkinter is available for the viewer.
  • GUI pipeline tab: telemetry of a running process no longer overwrites the dataset shared with the other tabs (Analysis / Weights / Predictions / Validation acted on the dataset being generated while showing another); dataset snapshots hardlink only images/ and copy the row files, splits, manifest, feedback and flags (extend / feedback changed the "frozen" snapshot too); Extend Existing with several profiles in separate mode is refused (it appended to per-profile datasets nobody confirmed); renaming a dataset does not overwrite an existing model of the new name and renames models only for run datasets. Predictions tab: choosing another dataset keeps the loaded results tied to their own dataset. Profile editor: closing it (or a newer edit) cancels the running Blender HQ render.
  • Tests: tests/test_audit3_fixes.py.

Shortened here. Full file on GitHub