Using ThreadPool to speed up batch pre-processing #476
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.18) × (1 − Review Confidence (0.90)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.18 · 11 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.88 · 3 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.149
Real PR Conversation Timeline
4 items
Codecov Report
Merging #476 into master will decrease coverage by 0.1%.The diff coverage is 100%.
@@ Coverage Diff @@
## master #476 +/- ##
==========================================
- Coverage 67.27% 67.16% -0.11%
==========================================
Files 33 33
Lines 2096 2089 -7
==========================================
- Hits 1410 1403 -7
Misses 686 686
| Impacted Files | Coverage Δ | |
|---|---|---|
| darkflow/net/flow.py | 97.64% <100%> (-0.18%) | :arrow_down: |
------
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update a539083...5d022ab. Read the comment docs.
Where is this package pool comes from? do we have to import it? install?
"pool" variable is initialized as a Python built-in ThreadPool instance at flow.py#L15 which has been used few months in ThreadPool batch post-processing for prediction. 😎
thtrieu
lilohuang
Tasks in pre-processing stage are thread safe. Using ThreadPool to improve the batch pre-processing performance at least 2x faster with large batch size. (e.g. python flow --imgdir sample_img/ --model cfg/yolo.cfg --load bin/yolo.weights --batch 32)
Note: Please evaluate the performance improvement with large number of images instead of 8 images in sample_img/ by default.