Skip to content

train.py: error: argument --weights: expected one argument #6072

@LokedSher

Description

@LokedSher

Search before asking

Question

I want to train a yolov5s on my own dataset and randomly initialize the weights. I have modified coco128.yaml and run the sh
python .\train.py --img 640 --batch 16 --data .\data\coco128.yaml --cfg .\models\yolov5s.yaml --weights '' --device 0 as the tutorial said,then the error occured:
train.py: error: argument --weights: expected one argument
I don't know how to deal with it

Additional

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleStale and schedule for closing soonquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions