Skip to content

Commit 63fb65a

Browse files
authoredFeb 23, 2024
Update train.py
1 parent 7181f28 commit 63fb65a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎segment/train.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ def train(hyp, opt, device, callbacks): # hyp is path/to/hyp.yaml or hyp dictio
215215

216216
# Model attributes
217217
nl = de_parallel(model).model[-1].nl # number of detection layers (to scale hyps)
218-
hyp['box'] *= 3 / nl # scale to layers
219-
hyp['cls'] *= nc / 80 * 3 / nl # scale to classes and layers
220-
hyp['obj'] *= (imgsz / 640) ** 2 * 3 / nl # scale to image size and layers
218+
#hyp['box'] *= 3 / nl # scale to layers
219+
#hyp['cls'] *= nc / 80 * 3 / nl # scale to classes and layers
220+
#hyp['obj'] *= (imgsz / 640) ** 2 * 3 / nl # scale to image size and layers
221221
hyp['label_smoothing'] = opt.label_smoothing
222222
model.nc = nc # attach number of classes to model
223223
model.hyp = hyp # attach hyperparameters to model

0 commit comments

Comments
 (0)