-
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
divided by 0 error #541
Labels
bug
Something isn't working
Comments
@AlexWang1900 ah, thanks for the bug report! It looks like c2 is already protected, so then alpha may be the only unprotected divide as you say. Yes we should add 1e-16 here. Would you like to submit a PR for this or I can include it in the next commit? |
I will summit a PR thanks!😀
…---Original---
From: "Glenn Jocher"<notifications@github.com>
Date: Wed, Jul 29, 2020 02:26 AM
To: "ultralytics/yolov5"<yolov5@noreply.github.com>;
Cc: "Mention"<mention@noreply.github.com>;"AlexWang1900"<41888506@qq.com>;
Subject: Re: [ultralytics/yolov5] divided by 0 error (#541)
@AlexWang1900 ah, thanks for the bug report! It looks like c2 is already protected, so then alpha may be the only unprotected divide as you say. Yes we should add 1e-16 here. Would you like to submit a PR for this or I can include it in the next commit?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
AlexWang1900
added a commit
to AlexWang1900/yolov5
that referenced
this issue
Jul 29, 2020
Merged
glenn-jocher
added a commit
that referenced
this issue
Jul 31, 2020
Issue resolved, removing TODO. |
KMint1819
pushed a commit
to KMint1819/yolov5
that referenced
this issue
May 12, 2021
* fix ultralytics#541 ultralytics#542 * Update train.py Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
KMint1819
pushed a commit
to KMint1819/yolov5
that referenced
this issue
May 12, 2021
* fix ultralytics#541 ultralytics#542 * Update train.py * Add Frelu * Update activations.py PEP8 and format updates for commonality with models.common.Conv() * Update activations.py Update case * Update activations.py Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
BjarneKuehl
pushed a commit
to fhkiel-mlaip/yolov5
that referenced
this issue
Aug 26, 2022
* fix ultralytics#541 ultralytics#542 * Update train.py Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
BjarneKuehl
pushed a commit
to fhkiel-mlaip/yolov5
that referenced
this issue
Aug 26, 2022
* fix ultralytics#541 ultralytics#542 * Update train.py * Add Frelu * Update activations.py PEP8 and format updates for commonality with models.common.Conv() * Update activations.py Update case * Update activations.py Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before submitting a bug report, please be aware that your issue must be reproducible with all of the following, otherwise it is non-actionable, and we can not help you:
git fetch && git status -uno
to check andgit pull
to update repoIf this is a custom dataset/training question you must include your
train*.jpg
,test*.jpg
andresults.png
figures, or we can not help you. You can generate these withutils.plot_results()
.🐛 Bug
in utils.py line 345:
To Reproduce (REQUIRED)
it's hard to reproduce, I encounter it when I was trying some new target assigning methods..
Output:
alpha = Nan.
Expected behavior
alpha be a normal value between 0 - 1
Environment
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
it's hard to reproduce, I encounter it when I was trying some new target assigning methods..
The text was updated successfully, but these errors were encountered: