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

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

Open
mkrupczak3 opened this issue Aug 28, 2022 · 0 comments
Open

Comments

@mkrupczak3
Copy link

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

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

1 participant