-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Cannot load image, STB Reason: expected marker #312
Comments
Have you solved the problem? I meet the same |
@RichardYinguo Something wrong with that image, please delete it in the list. don't know why... |
thanks |
These appear to be images that got truncated. opencv loads them fine with original dimensions, (so a check in parse.py won't prevent the problem) but the darknet code dies on them. I found 2 examples and uploaded to |
I faced the same issue. Is the UPDATE: |
any truncated image will do this due to the c code used for loading the image. You can add a check to the code eg. a try/catch, or hope there are no more truncated images in your dataset |
If you take a look at the image that can’t be loaded - COCO_train2014_000000167126.jpg, you will see it’s damaged. Solution: You are welcome. :) References: |
Did someone solve the problem, in which the solution doesn't involve redownloading the damaged image? |
You can fix the original C code which is lacking a check for this error
…On Thu, Jun 27, 2019 at 10:41 AM utkarsh1508 ***@***.***> wrote:
Did someone solve the problem, in which the solution doesn't involve
redownloading the damaged image?
Because I initially used the same images to train, and it worked fine. But
the next time I reset the session of VM, this particular error pops up.
Is there some way this could be avoided as currently, I need to unzip the
dataset every time I use a new session.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#312?email_source=notifications&email_token=AA5PJQEN4QDHBRQKL46JD3TP4RVMFA5CNFSM4EDZ2AD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYWHXRY#issuecomment-506231751>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA5PJQH7E2K2QQ5JNDL3IA3P4RVMFANCNFSM4EDZ2ADQ>
.
|
I've work on it all day.Finally I make it!! |
Thx for solution, will try it later today. One correction: P.S. Sorry for my english |
@chenjiahe01 As I am not really good with C, can you elaborate a bit on the use of the condition |
@dranaivo You can check if |
When I try to train it on COCO:
I see such error
This error happend randomly, anyone knows how to solve it?
The text was updated successfully, but these errors were encountered: