glenn-jocher commited on
Commit
47fac9f
·
unverified ·
1 Parent(s): 0453b75

Update train.py comment to 'Model attributes' (#5670)

Browse files
Files changed (1) hide show
  1. train.py +1 -1
train.py CHANGED
@@ -243,7 +243,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
243
  if cuda and RANK != -1:
244
  model = DDP(model, device_ids=[LOCAL_RANK], output_device=LOCAL_RANK)
245
 
246
- # Model parameters
247
  nl = de_parallel(model).model[-1].nl # number of detection layers (to scale hyps)
248
  hyp['box'] *= 3 / nl # scale to layers
249
  hyp['cls'] *= nc / 80 * 3 / nl # scale to classes and layers
 
243
  if cuda and RANK != -1:
244
  model = DDP(model, device_ids=[LOCAL_RANK], output_device=LOCAL_RANK)
245
 
246
+ # Model attributes
247
  nl = de_parallel(model).model[-1].nl # number of detection layers (to scale hyps)
248
  hyp['box'] *= 3 / nl # scale to layers
249
  hyp['cls'] *= nc / 80 * 3 / nl # scale to classes and layers