Skip to content
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

AssertionError: Image Not Found ..\coco128\images\train2017\000000000357.jpg #1678

Closed
HerrLieber opened this issue Dec 13, 2020 · 8 comments
Closed
Labels
question Further information is requested Stale Stale and schedule for closing soon

Comments

@HerrLieber
Copy link

HerrLieber commented Dec 13, 2020

❔Question

When I tried to train coco128 using the environment created on colab using this link:

https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb

I encountered the following problem when I followed the steps step by step. I have tried to retrain many times and each time this is the error.

AssertionError: Image Not Found ..\coco128\images\train2017\000000000357.jpg

As you can see from the image, this image exists under this path.

image

Additional context

In addition two bug files were generated at runtime, how do I upload them to this screen?

@HerrLieber HerrLieber added the question Further information is requested label Dec 13, 2020
@HerrLieber
Copy link
Author

❔Question

When I tried to train coco128 using the environment created on colab using this link:

https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb

I encountered the following problem when I followed the steps step by step. I have tried to retrain many times and each time this is the error.

AssertionError: Image Not Found ..\coco128\images\train2017\000000000357.jpg

As you can see from the image, this image exists under this path.

image

Additional context

In addition two bug files were generated at runtime, how do I upload them to this screen?

debug.log
debug-internal.log

@glenn-jocher
Copy link
Member

@HerrLieber I am not able to reproduce your error, tested right now in Colab notebook. Steps to train are simply:

  1. Run Setup cell
  2. Run Train cell

Screen Shot 2020-12-12 at 6 36 41 PM

@NotFound1911
Copy link

NotFound1911 commented Dec 15, 2020

I encountered the same error on the server. So I changed the path to an absolute path.
utils/datasets.py
...
# self.img_files = sorted([x.replace('/', os.sep) for x in f if x.split('.')[-1].lower() in img_formats])
self.img_files = f
...
# self.img_files = list(cache.keys()) # update
...
Maybe you can have a try.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale Stale and schedule for closing soon label Jan 15, 2021
@yicong-q
Copy link

yicong-q commented Sep 23, 2024

When we are training, a (.cache) file will be generated under the label folder.
This file is generated to facilitate the next training.
We only need to delete this (.cache) file to solve this problem.
屏幕截图 2024-09-23 160939

@glenn-jocher
Copy link
Member

Deleting the .cache file can indeed resolve path-related issues during training. If the problem persists, ensure you're using the latest YOLOv5 version.

@yicong-q
Copy link

Deleting the .cache file can indeed resolve path-related issues during training. If the problem persists, ensure you're using the latest YOLOv5 version.

The above method has solved this problem.
Thank you for still tracking this issue.

@glenn-jocher
Copy link
Member

Glad to hear that resolved your issue! If you have any more questions, feel free to ask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale Stale and schedule for closing soon
Projects
None yet
Development

No branches or pull requests

4 participants