Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #427 +/- ##
===========================================
+ Coverage 79.46% 79.48% +0.02%
===========================================
Files 6 6
Lines 852 853 +1
===========================================
+ Hits 677 678 +1
Misses 175 175
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
MateoLostanlen
self-requested a review
October 8, 2026 15:11
Member
|
Thanks, nice work @frgfm . The letterbox / RGB / pool changes are simple and the memory gain is welcome.
|
This was referenced Oct 9, 2026
Member
Author
All addressed :) |
This branch has not been deployed
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.
Preparing a frame made extra image copies. Checking overlapping boxes built one huge table. This keeps the copies we need, joins frame history once, and checks overlaps 128 rows at a time.
flowchart LR subgraph Before A[Extra image copies] --> B[One huge overlap table] end subgraph After C[Fewer image copies] --> D[Small batches of rows] end B --> E[Same detections] D --> EBoth NCNN and ONNX use these image/box changes. Defaults stay unchanged.
Medians of three fresh processes against
dbf298d; CPU-only EPYC 9V74, four-CPU quota. Last row usesintra_op_num_threads=4andenable_mem_pattern=False. Runtime timings varied; Pi/ARM needs a device run.Same answers on real photos: compared
dbf298dwithab14f8don Pyro-SDIS.For each photo, old and new code produced identical input tensors. Full inference also matched boxes, scores, temporal alert state and JPEGs exactly. Fixed weights, CPU/four threads, 720p Engine input, subset seed 427. This checks regression agreement. Run and raw results (artifact:
pr427-real-image-comparison).ONNX options: the existing
Engine → Predictor → Classifierpath forwardsonnx_session_optionsthrough**kwargs; an Engine-level test now verifies it reaches ONNX Runtime.Checks: 13 focused regression cases; test file reduced from 175 to 73 lines. GitHub CI passed 76 engine tests and 82 camera API tests (seven skipped). All five PR workflows passed.
The isolated comparison branch was removed. Its workflow/data are outside this PR's history; the diagram lives only in this description.