赞
踩
pip install -r requirements.txt


NWPU VHR-10 dataset/split_data
train
images
000001.jpg
000002.jpg
000003.jpg
......
labels
000001.txt
000002.txt
000003.txt
......
val
images
......
labels
......
test
images
......
labels
......







![]()
- # Train settings -------------------------------------------------------------------------------------------------------
- model: # path to model file, i.e. yolov8n.pt, yolov8n.yaml
- data: # path to data file, i.e. i.e. coco128.yaml
- epochs: 100 # number of epochs to train for
- patience: 50 # epochs to wait for no observable improvement for early stopping of training
- batch: 16 # number of images per batch (-1 for AutoBatch)
- imgsz: 640 # size of input images as integer or w,h
- save: True # save train checkpoints and predict results
- cache: False # True/ram, disk or False. Use cache for data loading
- device: # device to run on, i.e. cuda device=0 or device=0,1,2,3 or device=cpu
- workers: 8 # number of worker threads for data loading (per RANK if DDP)
- project: # project name
- name: # experiment name
- exist_ok: False # whether to overwrite existing experiment
- pretrained: False # whether to use a pretrained model
- optimizer: SGD # optimizer to use, choices=['SGD', 'Adam', 'AdamW', 'RMSProp']
- verbose: True # whether to print verbose output
- seed: 0 # random seed for reproducibility
- deterministic: True # whether to enable deterministic mode
- single_cls: False # train multi-class data as single-class
- image_weights: False # use weighted image selection for training
- rect: False # support rectangular training if mode='train', support rectangular evaluation if mode='val'
- cos_lr: False # use cosine learning rate scheduler
- close_mosaic: 10 # disable mosaic augmentation for final 10 epochs
- resume: False # resume training from last checkpoint
- min_memory: False # minimize memory footprint loss function, choices=[False, True, <roll_out_thr>]

python train.py
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。