Ver Fonte

train YOLOv8-N

yjh0410 há 2 anos atrás
pai
commit
9af2f8364a
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      config/model_config/yolov8_config.py
  2. 1 1
      train_multi_gpus.sh

+ 1 - 1
config/model_config/yolov8_config.py

@@ -51,7 +51,7 @@ yolov8_cfg = {
         'loss_dfl_weight': 1.5,
         'loss_box_aux': False,
         # ---------------- Train config ----------------
-        'trainer_type': 'yolov8',
+        'trainer_type': 'rtcdet',
     },
 
     'yolov8_l':{

+ 1 - 1
train_multi_gpus.sh

@@ -46,7 +46,7 @@ python -m torch.distributed.run --nproc_per_node=8 train.py \
                                                     -d coco \
                                                     --root /data/datasets/ \
                                                     -m yolov8_n\
-                                                    -bs 128 \
+                                                    -bs 64 \
                                                     -size 640 \
                                                     --wp_epoch 3 \
                                                     --max_epoch 500 \