mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Compute loss on final val (#5017)
This commit is contained in:
parent
b20e381492
commit
89a6e9ffa7
3
train.py
3
train.py
@ -419,7 +419,8 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
|
|||||||
save_json=is_coco,
|
save_json=is_coco,
|
||||||
verbose=True,
|
verbose=True,
|
||||||
plots=True,
|
plots=True,
|
||||||
callbacks=callbacks) # val best model with plots
|
callbacks=callbacks,
|
||||||
|
compute_loss=compute_loss) # val best model with plots
|
||||||
|
|
||||||
callbacks.run('on_train_end', last, best, plots, epoch)
|
callbacks.run('on_train_end', last, best, plots, epoch)
|
||||||
LOGGER.info(f"Results saved to {colorstr('bold', save_dir)}")
|
LOGGER.info(f"Results saved to {colorstr('bold', save_dir)}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user