Skip to content

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

@thanujTa

Description

@thanujTa

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions