type
status
date
slug
category
password
tags
1. 🎯 Objectives
- Evaluate object localization and classification accuracy.
- Highlight missed detections and misclassified labels.
- Generate annotated images and JSONs for easy debugging.
- Provide a standalone executable and also allow CLI-based usage for flexibility.
2. 🧩 Logic Structure (Folder & Code Overview)
3. ⚙️ Compile as a Single Executable
To compile a self-contained EXE with no external DLLs needed:
✅ Output:
ConsoleApp1.exe (runnable standalone on any Windows 64-bit machine)4. ▶ Run the App
✅ From Terminal (without compiling):
✅ From PowerShell (with compiled EXE):
💡 Example:
5. 📥 Inputs & 📤 Outputs
✅ Inputs
- Images Folder:
.jpgimages and matching_ground.json
- Localizer Model:
localizer.onnx
- Classifier Archive:
classifier.cat→ contains: classificationNet.onnxlabels.jsonmeanStd.json
✍️ Ground Truth Preparation Steps
- Run app to generate predicted outputs.
- Use makesense.ai or LabelImg to adjust annotations.
- Save the corrected file as
imageName_ground.json.
💡 Ground Truth Format (per file):
✅ Outputs
predicted/test1_predicted.json: Detected boxes and labels
predicted/test1_boxChecker.jpg: Image annotated with mismatches
- Console accuracy summary:
6. 🧪 Parameters & Logic
🔑 Passable Parameters
IoUThresh(default: 0.7) → Box matching threshold
angleThreshold,downsizeFactor,bayShlvCount
localizationThresh,displayThresh,deviation,maxDistanceCfnt, ...
👉 Defined and validated in:
OdnnRequestInfo.cs🧠 Logic
- Parameters are passed via command line.
OdnnRequestInfo.cschecks:- Is key recognized (
_knownParameters)? - Is value within valid range?
🔍 This avoids runtime crashes and ensures consistent behavior.
- Author:wenyang
- URL:https://www.wenyang.xyz/article/accChecker
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!