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

[Errno 2] No such file or directory: '../data/voc2012/VOCdevkit/VOC2012/train.txt' #25

Open
thanujTa opened this issue Nov 23, 2022 · 2 comments

Comments

@thanujTa
Copy link

when executing - ! python train.py, there's an error showing up - [Errno 2] No such file or directory: '../data/voc2012/VOCdevkit/VOC2012/train.txt'

I tried to look for the .txt file in the given directory, but I couldn't find it. Did anyone else have this same issue?

I also checked the read_data.py script, but I cant seem to find the directory linked to it. How to resolve this issue.

To be clear here's the entire error:

Traceback (most recent call last):
File "/home/jovyan/Yolov5/yolo/train.py", line 153, in
DataReader = DataReader(params['train_annotations_dir'], img_size=params['img_size'], transforms=transforms,
File "/home/jovyan/Yolov5/yolo/dataset/read_data.py", line 21, in init
self.annotations = self.load_annotations(annotations_dir)
File "/home/jovyan/Yolov5/yolo/dataset/read_data.py", line 65, in load_annotations
with open(annotations_dir, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '../data/voc2012/VOCdevkit/VOC2012/train.txt'

@LongxingTan
Copy link
Owner

@thanujTa

You could download the data first, like the script
https://github.com/LongxingTan/tfyolo/blob/main/data/scripts/get_voc.sh

@ds-seungwan
Copy link

FileNotFoundError: [Errno 2] No such file or directory: '../tfyolo/data/voc/voc.names'
-> i tried bash data/scripts/get_voc.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants