Repository navigation
Release 0.5.0 — review hardening, progress bar, crash fix, export refinements - #14
Merged
Merged
Conversation
added 5 commits
May 31, 2026 17:47
Add SpawnProcess (train/export spawn managers) with a terminate() for shutdown, and ImageInferenceWorker (inference/deploy QThread workers). Workers now emit finished_all in a finally so the UI always re-enables. Removed the now-unused run_inference_single from inferencer.py.
Extract ResultsViewerMixin (shared image viewer + detections table + nav) used by the Inference and Deploy tabs. Add a training progress bar to the Train tab. MainWindow.closeEvent now shuts down each tab's worker/process cleanly; tabs wait() for worker threads before releasing them.
TensorRT export keeps the intermediate ONNX fp32 (fp16 only at engine build) and records engine fp16/workspace in metadata; export metadata records the baked score threshold. build_cfg no longer registers datasets in the GUI process. validate_coco_json checks category id/name, category-id references, and bbox shape (bounded scan). Session logs are capped to the newest 20.
main.py now delegates to app.main; freeze_support() lives in app.main() (covers both entry points). README documents the torch.load (.pth) security caveat. test_scripts/retinanet_trt_derisk.py checks whether a RetinaNet ONNX is TensorRT-convertible.
Release 0.5.0: training progress bar, graceful shutdown, QThread crash fix, TensorRT/ONNX export hardening, stronger COCO validation, worker/tab deduplication, and the onnxruntime-gpu + RoiAlign TensorRT docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Code-review hardening pass + small features, released as 0.5.0. Five focused commits:
SpawnProcessbase (train/export, withterminate()),ImageInferenceWorkerbase (inference/deploy); workers emitfinished_allin afinally; removed deadrun_inference_single.ResultsViewerMixinshared by Inference/Deploy tabs; training progress bar; graceful shutdown (closeEventstops processes / awaits workers); crash-safe worker teardown (wait()before release).build_cfgno longer registers datasets in the GUI process; strongervalidate_coco_json; session-log retention.main.py→app.main(singlefreeze_support);.pth/torch.loadsecurity note; RetinaNet TensorRT de-risk script.Notable fixes
QThread: Destroyed while thread is still runningafter a Deploy/Inference run.Verification
Full suite green locally (
60 passed, 2 skipped), ruff + format clean,MainWindowconstructs + closes cleanly. Tagv0.5.0will publish to PyPI after merge.