updates
This commit is contained in:
parent
b11bb91804
commit
e8303a366f
3
train.py
3
train.py
|
@ -198,7 +198,8 @@ def train(cfg,
|
||||||
|
|
||||||
# Start training
|
# Start training
|
||||||
model.hyp = hyp # attach hyperparameters to model
|
model.hyp = hyp # attach hyperparameters to model
|
||||||
# model.class_weights = labels_to_class_weights(dataset.labels, nc).to(device) # attach class weights
|
if dataset.image_weights:
|
||||||
|
model.class_weights = labels_to_class_weights(dataset.labels, nc).to(device) # attach class weights
|
||||||
model_info(model, report='summary') # 'full' or 'summary'
|
model_info(model, report='summary') # 'full' or 'summary'
|
||||||
nb = len(dataloader)
|
nb = len(dataloader)
|
||||||
maps = np.zeros(nc) # mAP per class
|
maps = np.zeros(nc) # mAP per class
|
||||||
|
|
Loading…
Reference in New Issue