ultralytics 8.0.173 fix missing val plots and new Conda Guide (#4783)

This commit is contained in:
Glenn Jocher 2023-09-07 19:24:54 +02:00 committed by GitHub
parent 602022a56e
commit dfe6dfb1d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 188 additions and 23 deletions

View file

@ -102,8 +102,8 @@ class BaseValidator:
@smart_inference_mode()
def __call__(self, trainer=None, model=None):
"""
Supports validation of a pre-trained model if passed or a model being trained
if trainer is passed (trainer gets priority).
Supports validation of a pre-trained model if passed or a model being trained if trainer is passed (trainer
gets priority).
"""
self.training = trainer is not None
augment = self.args.augment and (not self.training)