Skip to content
Projetos

saberfazliahmadi/hybrid-vision-llm-inspector

Ver no GitHub

Sobre

Deterministic-first industrial visual QA combining classical CV gating (SIFT/RANSAC, Hough), ROI segmentation (-91% VLM tokens), custom PyTorch CNNs (ResNetCBAM, MobileNetSE, Grad-CAM), Visual RAG & grounded LLM guardrails (FastAPI, Ollama, Docker).

Desenvolvimento web e de aplicativos

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Hybrid Vision-LLM Inspector

Python PyTorch FastAPI Ruff CI License: MIT

projectlogo

Deterministic-first visual quality inspection for precision machined parts. Classical computer vision verifies what can be verified exactly, segmentation cuts the image down to the anomalous regions, lightweight attention CNNs classify and explain, a visual RAG store retrieves similar historical defects, and an LLM only writes up verified, structured evidence, behind deterministic guardrails it cannot override.

Thesis. Production visual AI should not stream raw high-resolution factory frames into expensive, hallucination-prone Vision-LLMs. Hough transforms do not hallucinate a drilled hole, RANSAC tells you exactly how many correspondences agree, and a 46 k parameter CNN classifies a part in milliseconds on a CPU. The LLM's job is documentation and reasoning over verified evidence, not perception.

Everything (tests, benchmarks, API, UI, figures) runs offline on a CPU with no API keys and no dataset downloads: a seeded procedural generator renders realistic inspection images, and the default LLM provider is a deterministic mock. Ollama (local, GDPR-friendly), OpenAI and Gemini are drop-in options.

Quick jump: 2-minute overview · Architecture · Visual proof · Verified benchmarks · CNN deep-dive · Why hybrid? · Quickstart · Limitations · References · Disclaimer


Start Here: 2-Minute Visual Overview

Get the full non-code picture of the project here before reading the technical benchmarks and PyTorch details below.

Animated 5-stage Hybrid Vision-LLM inspection flow with real pipeline outputs

Animated pipeline flow: every thumbnail is actual pipeline output on one noisy, misaligned synthetic part.

🎥▶ Watch this Project Overview to Understand it Easily & Quickly :)

🔊 click the speaker icon on video player to unmute

https://github.com/user-attachments/assets/2c7a3db0-8641-4ae4-9c1f-3bc810e06f24

Concept Infographic (Factory Analogies, 6 KPIs & 3-Way Trade-Off Table)

Hybrid Vision-LLM Inspector 5-Stage Pipeline Infographic


Architecture

flowchart TB
    IN(["Camera frame (RGB)"]) --> GATE

    subgraph GATE["1 · Classical CV gate"]
        direction LR
        G1["Drift and exposure check"] --> G2["3x3 median denoise"] --> G3["SIFT + RANSAC alignment"]
    end

    GATE --> GEO
    GATE --> ROI
    GATE --> CNN

    subgraph GEO["2 · Geometry check"]
        direction TB
        H1["Hough circles: 4 holes"]
        H2["Hough + RANSAC: border"]
    end

    subgraph ROI["3 · ROI segmentation"]
        direction TB
        R1["Reference residual"] --> R2["Marker watershed"] --> R3["ROI crops + token savings"]
    end

    subgraph CNN["4 · Edge CNN"]
        direction TB
        C1["ResNetCBAM / MobileNetSE"] --> C2["CBAM / Grad-CAM focus"]
    end

    CNN --> RAG

    subgraph RAG["5 · Visual RAG"]
        direction LR
        V1["GAP embedding"] --> V2["Top-k past QA cases"]
    end

    GEO --> LLM
    ROI --> LLM
    CNN --> LLM
    RAG --> LLM

    subgraph LLM["6 · Grounded report"]
        direction LR
        L1["JSON evidence only"] --> L2["LLM provider"] --> L3["Pydantic validation"] --> L4["Guardrails"]
    end

    LLM --> OUT(["GroundedInspectionReport"])

Visual proof

All figures are produced by python benchmarks/generate_readme_visuals.py from the trained checkpoints. Nothing is hand-edited.

End-to-end walkthrough - a corroded part with 2% salt-and-pepper noise and a part with a missing mounting hole, each pose-misaligned and with exposure drift:

Pipeline walkthrough

Segmentation comparison - raw gradient watershed over-segments into hundreds of basins; marker-controlled watershed on the reference-guided anomaly mask isolates the actual pits:

Segmentation comparison

Classical CV vs. CNN ablation (verified numbers below):

Ablation benchmarks

Explainability - CBAM spatial attention and Grad-CAM per class:

CNN attention gallery


Verified benchmark results

The block below is written by benchmarks/run_cv_vs_cnn_ablation.py and mirrors benchmarks/results_summary.md and artifacts/metrics/ablation_results.json. Re-run the script to reproduce it.

Auto-generated by benchmarks/run_cv_vs_cnn_ablation.py (seed 7, 800 train / 160 val / 300 test images, 15 epochs, CPU: 8 torch threads, Python 3.12.1, torch 2.15.0+cpu).

Classical gate on the generated factory-condition data: SIFT+RANSAC registration success 99.92%, impulse-noise denoising triggered on 30.32% of images.

Model Family Test Acc. (%) Macro F1 Params / stored values FLOPs (M) CPU latency (ms/img)
Histogram 1-NN (2 bins) classical 34.00 0.334 1,600 - 0.769
Histogram 1-NN (10 bins) classical 53.33 0.527 8,000 - 0.764
Histogram 1-NN (51 bins) classical 35.67 0.357 40,800 - 1.267
Histogram 1-NN (255 bins) classical 31.67 0.315 204,000 - 3.853
Histogram 1-NN (51 bins, raw / no gate) ablation 32.33 0.322 40,800 - 1.200
BoVW (dense SIFT + K-Means + TF-IDF + LinearSVC) classical 41.67 0.363 16,896 - 21.710
MiniVGGNet cnn 99.67 0.997 211,508 386.93 18.518
MiniInceptionNet cnn 97.67 0.977 57,788 72.21 24.870
MobileNetSE cnn 98.33 0.983 46,220 36.75 12.956
ResNetCBAM cnn 99.33 0.993 331,594 402.94 22.216
MobileNetSE (raw / no gate) ablation 86.00 0.859 46,220 36.75 12.956
Retrieval (test queries vs. train index) Precision@3
BoVW TF-IDF (inverted index) 0.387
ResNetCBAM GAP embedding (cosine) 0.993
MobileNetSE GAP embedding (cosine) 0.977

End-to-end orchestrator (ResNetCBAM + mock LLM, 160 fresh parts, all misaligned, 30% noisy, 50% drifted):

Metric Value
Correct final verdict 83.75%
Routed to MANUAL_REVIEW 15.00%
Wrong automatic verdict 1.25%
Accuracy on automatic decisions 98.53%
Reports with a deterministic guardrail override 2.50%
Hough hole-check agreement with ground truth 100.00%
ROI image-token reduction on defective parts 91.27%
Clean parts with a (false) ROI proposal 15.00%
Median end-to-end latency (CPU) 375.4 ms

Reading the numbers

  • Classical features alone cannot see 1-2 px defects. Global histograms (31.7-53.3%) and dense-SIFT BoVW (41.7%) barely beat chance (25%) on four classes: a scratch or a missing hole changes well under 1% of the pixels. Classical CV earns its place as the gate (registration, hole and border verification), not as the classifier.
  • The gate is what makes small CNNs reliable. The same 46 k-parameter MobileNetSE reaches 98.33% on denoised + registered images but only 86.00% on raw frames. With the gate, all four CNNs reach 97.7-99.7% at 13-25 ms per image on CPU.
  • Cheap models are enough. MobileNetSE needs 11x fewer FLOPs than ResNetCBAM (36.8 M vs. 402.9 M) for a 1-point accuracy difference: the pragmatic edge choice.
  • Learned embeddings make visual RAG useful. CNN GAP embeddings retrieve a same-class historical case in the top-3 with Precision@3 0.993 (ResNetCBAM) vs. 0.387 for BoVW TF-IDF.
  • End to end, the system prefers abstaining over guessing. On 160 fresh parts (every one misaligned), 83.75% get the correct final verdict, 15.00% are routed to MANUAL_REVIEW and only 1.25% receive a wrong automatic verdict (98.53% accuracy on automatic decisions). Most manual reviews come from deliberately conservative rules (soft border evidence when the plate edge is near the frame boundary; ROI proposals on 15% of clean parts). The Hough hole check matched ground truth on 100% of parts.
  • Only a small part of the image needs to reach a VLM. On defective parts, the ROI crops need 91.27% fewer image tokens than the full frame (under the patch-token assumption below).

CNN Architecture Deep-Dive (Built from Scratch in PyTorch)

Every block below is hand-written in blocks.py and attention.py and assembled in architectures.py. Shapes, parameters and MACs come from complexity.py, and attention / Grad-CAM maps from explainability.py. All numbers are taken from artifacts/metrics/ablation_results.json (see the table above).

1. How a CNN works in this pipeline

  • Feature hierarchy. Early 3x3 layers respond to edges and the brushed-metal streaks, middle stages to textures and blob shapes, and the last stage to defect patterns (scratch line, pit cluster, missing bore) on a 16 x 16 grid at 128 px input.
  • Parameter sharing gives translation equivariance. One 3x3 kernel slides over the whole part, so a pit is detected the same way wherever it appears. A conv layer costs C_out * C_in * K^2 weights, independent of image size.
  • Exact spatial bookkeeping. W_out = floor((W_in - F + 2P) / S) + 1. Example: the stride-2 3x3 stem with padding 1 maps 128 to floor((128 - 3 + 2) / 2) + 1 = 64. This formula is unit-tested against nn.Conv2d / nn.MaxPool2d in test_cnn_shapes_flops.py.
  • Receptive field grows with depth. n stacked 3x3 convs see 1 + 2n pixels (5x5 for two, 7x7 for three), so the CNN learns context before the classifier head.
  • GAP + BNNeck instead of fully connected layers. All four models end in Global Average Pooling -> BatchNorm1d -> Dropout -> Linear. For ResNetCBAM, flattening the final 128 x 16 x 16 map into a 4-class FC layer would need 32,768 * 4 + 4 = 131,076 weights. The GAP head needs 128 * 4 + 4 = 516 (plus 256 BNNeck parameters), overfits less, and its 128-d vector, L2-normalised, is the Visual RAG embedding.

2. Visual schematic of the implemented blocks

CNN building blocks

The five building blocks in src/vision_llm_inspector/cnn/, with each model's measured cost and accuracy in the panel footers.

3. Evolution of the 4 implemented architectures (problem -> solution -> measured cost)

Architecture Historical bottleneck solved Key mechanism implemented Params / FLOPs / CPU ms Test acc. and best use case
MiniVGGNet (VGG, 2014) Large kernels are parameter-hungry and shallow VGGBlock: stacked 3x3 convs + max pooling, 4 blocks 211,508 / 386.9 M / 18.5 ms 99.67%. Simple, strong baseline, but the second most expensive model
MiniInceptionNet (GoogLeNet, 2014) One kernel size per layer; wide layers are costly InceptionBlock: parallel 1x1 / 3x3 / 5x5 / pool branches with 1x1 bottlenecks 57,788 / 72.2 M / 24.9 ms 97.67%. Multi-scale features with few parameters, yet the slowest on CPU because branch overhead outweighs its low FLOPs
MobileNetSE (MobileNet + SENet, 2017) Standard convs are too heavy for edge devices DepthwiseSeparableConv + SEBlock channel attention 46,220 / 36.8 M / 13.0 ms 98.33%. Edge or line-side deployment: smallest and fastest
ResNetCBAM (ResNet 2015 + CBAM 2018) Deep plain nets degrade; no notion of where to look ResidualBlock, BottleneckResidualBlock, CBAMBlock 331,594 / 402.9 M / 22.2 ms 99.33%. Orchestrator default: best retrieval embeddings (Precision@3 0.993) and attention maps

4. Real engineering takeaways (what matters in production)

  • Preprocessing beats model size. The classical gate (median denoising + SIFT/RANSAC registration) lifts the same 46k-parameter MobileNetSE from 86.00% on raw frames to 98.33% on gated frames. No architecture change gives a 12-point gain that cheaply.
  • Edge compute trade-off. Depthwise-separable MobileNetSE reaches 98.33% with 11x fewer FLOPs (36.8 M vs. 402.9 M) and 7x fewer parameters (46,220 vs. 331,594) than ResNetCBAM, and runs in 13.0 ms vs. 22.2 ms on CPU. FLOPs are not latency, though: MiniInceptionNet has 2x MobileNetSE's FLOPs but is the slowest model (24.9 ms) because of its many small branches.
  • Small-defect optimisation (BNNeck + precise-BN). A scratch or a missing hole covers under 1% of the pixels, so its signal is diluted by plain GAP into tiny feature variations. In development runs ResNetCBAM stayed near chance accuracy and MobileNetSE learned slowly until a BatchNorm1d (BNNeck) standardised the GAP vector. Early-epoch evaluation also collapsed because BatchNorm running statistics lagged the fast-changing weights, so the trainer recomputes exact BN statistics before every validation (trainer.py).
  • Interpretability reality check. CBAM spatial attention is an architectural gate and stays broad and diffuse. Grad-CAM is a gradient-based attribution for the predicted class and localises defects (especially corrosion) more sharply. Compare both in the attention gallery, and treat either as qualitative evidence, not proof.

Why hybrid CV + CNN + LLM?

Concern Raw frame -> Vision-LLM This hybrid pipeline
Determinism / auditability Sampling-dependent free text Hough votes, RANSAC inlier counts, z-scores: identical input gives identical evidence; every report cites the tool field it relies on
Safety Can "see" a hole that is not there Guardrails: a registered part with a missing hole is always FAIL_GEOMETRY; a PASS contradicted by ROIs, a broken border or a confident CNN defect becomes MANUAL_REVIEW
Latency Network round-trip per frame Classical gate + CNN run in tens to hundreds of ms on a laptop CPU
Cost Full-resolution image tokens per part Only compact JSON (and optionally ROI crops) leaves the line; ROI crops need far fewer image tokens than the full frame
Data protection (GDPR) Images leave the plant mock and ollama providers keep everything on-prem; cloud LLMs only ever receive numbers and labels
Explainability Post-hoc rationalisation CBAM attention maps, Grad-CAM, ROI boxes and hole-level Hough evidence
Robustness to factory conditions Unclear Median filtering for impulse noise, homography registration for pose, photometric normalisation for exposure drift

The ablation quantifies the core claim: the same MobileNetSE scores 98.33% on gated images (denoised + registered) vs. 86.00% on raw frames, and the deterministic Hough hole check agreed with ground truth on 100% of the 160 end-to-end parts.


What is implemented (and tested)

Module Highlights
data/industrial_generator.py Seeded renderer of brushed aluminium plates: lighting gradient, milled border, 4 drilled holes at CAD coordinates, 4 asymmetric fiducials; classes pass_ok, surface_scratch, pit_corrosion, geometric_defect (missing/deformed hole, edge chip); salt-and-pepper, +-15 deg / +-12 px (at 128 px) misalignment, illumination drift; golden reference + CAD design mask
classical_cv/histograms_saliency.py (R+G+B)/3 in float64 (overflow-safe), fixed bin edges [0,5,...,255], PDF, E[X], CDF, L1/L2 drift, integral image (verified vs. skimage), O(1) box sums, multi-scale surround-centre saliency
classical_cv/filters_edges.py SVD rank-1 separation of Gaussian/Sobel/Prewitt + measured speed-up, successive Gaussian identity sigma3 = sqrt(sigma1^2 + sigma2^2), DoG, zero-padded 3x3 median, rank filters, from-scratch Canny (Sobel, 4-bin quantisation, NMS along the gradient, hysteresis)
classical_cv/features_sift.py DoG scale space, 26-neighbour extremum test, contrast rejection, Hessian edge test Tr(H)^2/Det(H) > (r+1)^2/r; OpenCV SIFT, dense SIFT, ratio test; detector recall / precision / 1-precision against a known homography
classical_cv/model_fitting.py k = ceil(ln(alpha)/ln(1-eps^m)), RANSAC lines (+ TLS refit), normalised DLT + adaptive RANSAC homography with a rigid-motion prior, Hough lines (Hesse normal form) with NMS peaks, gradient-guided and full Hough circles, OpenCV wrapper, hole and border verification
segmentation/ Iterative + Otsu from scratch (bit-identical to skimage), BFS region growing, K-Means (RGB / RGBxy), SLIC, raw vs. marker watershed, Felzenszwalb-Huttenlocher from scratch (Union-Find, Int(C), tau(C) = k / size(C), MInt) + skimage backend, reference-guided ROI extractor with token-savings estimate
cnn/ ConvBNAct (Kaiming), VGG, Inception (1x1 bottlenecks), Residual / Bottleneck, Depthwise-separable; SE and CBAM (stores attention); MiniVGGNet, MiniInceptionNet, ResNetCBAM, MobileNetSE with GAP + BNNeck heads; exact shapes/params/MACs, 1/N + 1/D_K^2; Grad-CAM; deterministic trainer with precise-BN recalibration
retrieval/ BoVW: dense SIFT -> MiniBatchKMeans -> TF-IDF -> inverted index; histogram 1-NN baseline; CNN vector store with QA metadata (root cause, corrective action, ISO/DIN reference)
llm_integration/ Strict Pydantic v2 schemas, OpenAI/Gemini tool schemas, httpx providers (mock, Ollama, OpenAI, Gemini; sync + async), orchestrator with schema validation, fallback and guardrails
api/main.py /health, /inspect (upload or sample_id, model + provider selectable), /segment, /benchmark/summary, /samples
app/streamlit_demo.py 4 tabs: end-to-end inspection, classical CV lab, segmentation comparator, CNN architecture & benchmarks

Quickstart

git clone https://github.com/saberfazliahmadi/hybrid-vision-llm-inspector.git
cd hybrid-vision-llm-inspector
python -m venv .venv
# Linux/macOS: source .venv/bin/activate      Windows: .venv\Scripts\activate
pip install --index-url https://download.pytorch.org/whl/cpu torch torchvision   # CPU-only wheels (avoids CUDA downloads on Linux)
pip install --extra-index-url https://download.pytorch.org/whl/cpu -e ".[dev]"

ruff check . && ruff format --check .
pytest -v

# Train all models, run the ablation, write metrics + README table (~25-35 min on a laptop CPU)
python benchmarks/run_cv_vs_cnn_ablation.py
python benchmarks/generate_readme_visuals.py

# Service and UI
uvicorn vision_llm_inspector.api.main:app --port 8000
streamlit run app/streamlit_demo.py

# Or everything in containers (API :8000, UI :8501)
docker compose up --build

Cold start (fresh clone)

The four benchmarked checkpoints are versioned in artifacts/checkpoints/ (2.7 MB in total; ResNetCBAM 1.4 MB, MobileNetSE 0.2 MB), together with artifacts/metrics/ablation_results.json. A fresh clone therefore serves the same models that produced the numbers above, with no training step. Measured on the benchmark laptop (CPU):

Situation Orchestrator start-up First /inspect Behaviour
Packaged checkpoints (default) 1.9 s (load + build 100-case RAG store) ~0.5 s full accuracy
artifacts/checkpoints/ deleted ~47 s (quick-trains a fallback model, then caches it) ~0.4 s low-confidence CNN, so guardrails route most parts to MANUAL_REVIEW

The fallback (4 epochs, INSPECTOR_QUICK_TRAIN_EPOCHS) exists so the service never fails to start. It is not meant for production verdicts: run python benchmarks/run_cv_vs_cnn_ablation.py to retrain the full models. Orchestrators are created lazily per CNN model, so /health responds immediately after uvicorn starts.

API examples

curl http://localhost:8000/health

# Built-in sample: <class>-<index> (always misaligned; odd index = noisy; index % 3 == 0 = drift)
curl -X POST http://localhost:8000/inspect -F sample_id=geometric_defect-3 -F cnn_model=resnet_cbam -F llm_provider=mock

# Your own image
curl -X POST http://localhost:8000/inspect -F [email protected]

curl -X POST http://localhost:8000/segment -F sample_id=pit_corrosion-2
curl http://localhost:8000/benchmark/summary

Uploads are limited to 10 MB (HTTP 413) and 4096 x 4096 px (HTTP 422). Docker Compose publishes both services on 127.0.0.1 only.

Configuration

All settings are environment variables with safe defaults (src/vision_llm_inspector/config.py):

Variable Default Meaning
INSPECTOR_LLM_PROVIDER mock mock, ollama, openai, gemini (falls back to mock if misconfigured)
INSPECTOR_OLLAMA_BASE_URL / INSPECTOR_OLLAMA_MODEL http://localhost:11434 / llama3.1:8b Local LLM
OPENAI_API_KEY, INSPECTOR_OPENAI_MODEL - / gpt-4o-mini OpenAI-compatible endpoint
GEMINI_API_KEY, INSPECTOR_GEMINI_MODEL - / gemini-2.5-flash Gemini REST endpoint
INSPECTOR_DEFAULT_CNN_MODEL resnet_cbam mini_vgg, mini_inception, resnet_cbam, mobilenet_se
INSPECTOR_INSPECTION_SIZE 256 Resolution of the deterministic stages
INSPECTOR_DRIFT_L1_THRESHOLD 1.75 Histogram L1 drift warning (informational; photometric normalisation compensates)
INSPECTOR_EXPOSURE_CLIP_MAX / INSPECTOR_EXPOSURE_P90_MIN 0.10 / 110 Hard image-quality reject: clipped-pixel fraction / 90th-percentile brightness (calibrated: in-spec parts <= 2.8% clipped and p90 >= 129; bad exposure >= 56% clipped or p90 <= 96)
INSPECTOR_LLM_INPUT_USD_PER_MTOK / ..._OUTPUT_... 0 Set your provider's prices to get cost telemetry (no prices are hard-coded)

Honest limitations

  • Synthetic data. The dataset is procedurally generated; real lines need real images, a calibrated golden reference per product variant and threshold re-tuning. The architecture (CAD-referenced verification + anomaly ROIs + small CNN + RAG) transfers; the numbers do not.
  • Token savings are an estimate under a generic 28 x 28 px patch tokeniser; actual provider tokenisation differs, the ratio is what matters.
  • Border support is soft evidence. When the plate edge leaves the camera's field of view after a large shift it cannot be judged, and a few borderline cases trigger false alarms; the orchestrator therefore routes uncorroborated border failures to MANUAL_REVIEW instead of failing the part. Missing/deformed holes are hard evidence.
  • CBAM attention is diffuse. The final-stage CBAM maps highlight broad plate regions across classes; Grad-CAM localises defects (especially corrosion) more sharply. Treat attention maps as qualitative evidence only.
  • Histogram L1 drift alone is a poor reject criterion on this data: with 51 fine bins, in-spec exposure drift already pushes L1 to ~1.9 (max 2.0). It is reported as a warning, and the hard gate uses physical exposure statistics instead.
  • Historical QA cases are synthetic records; the standards cited (ISO 2859-1, ISO 1101, DIN EN ISO 4287, ISO 8044, ...) are real references for the respective QA activities.

Repository layout

src/vision_llm_inspector/
  config.py                 Pydantic Settings
  data/                     deterministic industrial image generator
  classical_cv/             histograms, saliency, filters, Canny, SIFT/DoG, RANSAC, Hough
  segmentation/             Otsu, region growing, K-Means, SLIC, watershed, FH graph, ROI extractor
  cnn/                      blocks, attention, architectures, complexity, explainability, trainer
  retrieval/                BoVW inverted index, CNN vector store
  llm_integration/          schemas, tools, providers, orchestrator
  api/                      FastAPI service
app/streamlit_demo.py       interactive UI
benchmarks/                 ablation + figure generation + verified results
tests/                      math invariants, segmentation, CNN shapes/FLOPs, retrieval, LLM pipeline

References

The methods below are re-implemented from the original publications; no code or text is copied from them.

  1. D. G. Lowe, "Distinctive Image Features from Scale-Invariant Keypoints," IJCV, 2004. (SIFT, DoG, ratio test)
  2. J. Canny, "A Computational Approach to Edge Detection," IEEE TPAMI, 1986.
  3. N. Otsu, "A Threshold Selection Method from Gray-Level Histograms," IEEE Trans. SMC, 1979.
  4. P. F. Felzenszwalb and D. P. Huttenlocher, "Efficient Graph-Based Image Segmentation," IJCV, 2004.
  5. R. Achanta et al., "SLIC Superpixels Compared to State-of-the-Art Superpixel Methods," IEEE TPAMI, 2012.
  6. K. Simonyan and A. Zisserman, "Very Deep Convolutional Networks for Large-Scale Image Recognition," arXiv:1409.1556, 2014. (VGG)
  7. C. Szegedy et al., "Going Deeper with Convolutions," CVPR, 2015. (Inception / GoogLeNet)
  8. K. He, X. Zhang, S. Ren and J. Sun, "Deep Residual Learning for Image Recognition," CVPR, 2016. (ResNet)
  9. A. G. Howard et al., "MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications," arXiv:1704.04861, 2017.
  10. J. Hu, L. Shen and G. Sun, "Squeeze-and-Excitation Networks," CVPR, 2018. (SE)
  11. S. Woo, J. Park, J.-Y. Lee and I. S. Kweon, "CBAM: Convolutional Block Attention Module," ECCV, 2018.
  12. R. R. Selvaraju et al., "Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization," ICCV, 2017.
  13. H. Luo et al., "Bag of Tricks and a Strong Baseline for Deep Person Re-identification," CVPR Workshops, 2019. (BNNeck)

Disclaimer

This repository is a research and portfolio demonstrator. All images, defects and historical QA cases are synthetic and procedurally generated, and every reported figure was measured on that synthetic data only.

  • Not a certified product. It is not CE-marked and has not been assessed under the EU Machinery Regulation, the EU AI Act or any other product-safety framework. It must not be used as a safety component or to make release decisions on real parts.
  • Standards. ISO/DIN numbers are cited only as illustrative references for typical QA activities. No standard text is reproduced and no conformity with any standard is claimed.
  • Data protection. "GDPR-friendly" describes the local-only data flow of the mock and ollama providers. It is not legal advice.
  • Demo API. The FastAPI service and Streamlit app have no authentication and are intended for local use only. Do not expose them to untrusted networks.
  • No warranty. The software is provided "as is", without warranty of any kind, under the terms of the MIT License.

License

MIT - see LICENSE.

Explore projetos relacionados

Carregando…