fix nan problem for yolov2 #482
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.26) × (1 − Review Confidence (0.89)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.26 · 14 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.91 · 5 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.162
Real PR Conversation Timeline
9 items
Codecov Report
Merging #482 into master will decrease coverage by 0.01%.The diff coverage is 100%.
@@ Coverage Diff @@
## master #482 +/- ##
==========================================
- Coverage 67.27% 67.25% -0.02%
==========================================
Files 33 33
Lines 2096 2095 -1
==========================================
- Hits 1410 1409 -1
Misses 686 686
| Impacted Files | Coverage Δ | |
|---|---|---|
| darkflow/net/yolov2/train.py | 100% <100%> (ø) | :arrow_up: |
------
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...7998c13. Read the comment docs.
tf.sigmoid is enough
what are the ranges of coords? why do we clip to, specifically, -1e3 and 10? Source?
They were arbitrarily chosen. I had the problem where coords went to inf, so the main purpose is to clip the maximum. I'm actually not too sure how to choose the numbers.
merge please? :)
Are you sure this one solve #381 ?
I didn't experience this issue since I applied this patch, no issues with training as well
I tried this and it works! Thanks.
thtrieu
chewwt
resolves #381
gradients of expit_tensor, tf.pow, and tf.sqrt are unstable when the value is 0.
expit_tensor is replaced with tf.nn.sigmoid
tf.pow is replaced with tf.square
tf.sqrt is fixed according to https://github.com/tensorflow/tensorflow/issues/4914
Values going into tf.exp is also clipped to min -1e3 and max 10