Jelajahi Sumber

debug RTCDet-v2

yjh0410 2 tahun lalu
induk
melakukan
a8dc2809a3
2 mengubah file dengan 7 tambahan dan 7 penghapusan
  1. 6 6
      config/model_config/rtcdet_v2_config.py
  2. 1 1
      train.sh

+ 6 - 6
config/model_config/rtcdet_v2_config.py

@@ -55,9 +55,9 @@ rtcdet_v2_cfg = {
         # ---------------- Loss config ----------------
         ## Loss weight
         'ema_update': False,
-        'loss_cls_weight': 1.0,
-        'loss_box_weight': 5.0,
-        'loss_dfl_weight': 1.0,
+        'loss_cls_weight': 0.5,
+        'loss_box_weight': 7.0,
+        'loss_dfl_weight': 1.5,
         # ---------------- Train config ----------------
         'trainer_type': 'rtmdet',
     },
@@ -115,9 +115,9 @@ rtcdet_v2_cfg = {
         # ---------------- Loss config ----------------
         ## Loss weight
         'ema_update': False,
-        'loss_cls_weight': 1.0,
-        'loss_box_weight': 5.0,
-        'loss_dfl_weight': 1.0,
+        'loss_cls_weight': 0.5,
+        'loss_box_weight': 7.0,
+        'loss_dfl_weight': 1.5,
         # ---------------- Train config ----------------
         'trainer_type': 'rtmdet',
     },

+ 1 - 1
train.sh

@@ -3,7 +3,7 @@ python train.py \
         --cuda \
         -d coco \
         --root /mnt/share/ssd2/dataset/ \
-        -m rtmdet_v2_n \
+        -m rtcdet_v2_n \
         -bs 64 \
         -size 640 \
         --wp_epoch 3 \