Skip to content

Train on custom Dataset #141

Description

@vl1969s

I'm trying to train a yolo v9 model with a custom dataset, but I'm not sure how to do it. I'm following this steps:

  1. I have a folder with the folders images and labels on it. inside each folder I have train and val folders and inside images or txt (with same name as image) and labels in yolo format. e.g.: 0 0.12 0.62 0.05 0.07

  2. I Create a custom.yml file and located in yolo/config/dataset/custom.yml with this simple data:

path: C:/temp/clips
train: train
validation: val
class_num: 2
class_list: ['ok', 'nok']
auto_download:
  1. I run this command to train a model with my custom dataset:

python lazy.py task=train dataset=custom.yaml use_wandb=False device=cuda

Are the steps above correct? am I missing something?

can I place the custom.yml file in the same place as the dataset?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions