RealtimeConeDetection icon indicating copy to clipboard operation
RealtimeConeDetection copied to clipboard

train.py fails: No such file or directory: 'data/coco/trainval.txt'

Open mkrupczak3 opened this issue 2 years ago • 0 comments

Hi,

I've been playing around with this repo, I'm trying to re-tool it to use yolov3-tiny.weights. Obviously, yolov3-tiny.weights isn't trained yet to focus on cones.

Whenever I try to run train.py (even before my modifications) I get the following error:

bobjoe@mighty-m1 RealtimeConeDetection % python3 train.py
Namespace(epochs=500, batch_size=16, accumulated_batches=1, cfg='cfg/yolo3-tiny.cfg', data_cfg='cfg/coco.data', multi_scale=False, img_size=416, resume=False, var=0)

Using cpu

Traceback (most recent call last):
  File "/Users/bobjoe/Projects/RealtimeConeDetection/train.py", line 197, in <module>
    train(
  File "/Users/bobjoe/Projects/RealtimeConeDetection/train.py", line 39, in train
    dataloader = LoadImagesAndLabels(train_path, batch_size, img_size, multi_scale=multi_scale, augment=True)
  File "/Users/bobjoe/Projects/RealtimeConeDetection/utils/datasets.py", line 94, in __init__
    with open(path, 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'data/coco/trainval.txt'

I followed all the steps listed in the README.md for downloading files, which makes me think this might be something that is hard-coded in the program that it expects but is not listed

Do you have any advice for how to proceed? Thanks -Matthew

mkrupczak3 avatar Aug 28 '22 18:08 mkrupczak3