DDP, Comet, URLError fixes, improved error handling (#658)
Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tungway1990 <68179274+Tungway1990@users.noreply.github.com>
This commit is contained in:
parent
6c44ce21d9
commit
a5410ed79e
22 changed files with 79 additions and 81 deletions
|
|
@ -5,7 +5,7 @@ from ultralytics.yolo.utils.torch_utils import get_flops, get_num_params
|
|||
try:
|
||||
import comet_ml
|
||||
|
||||
except (ModuleNotFoundError, ImportError):
|
||||
except ImportError:
|
||||
comet_ml = None
|
||||
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ def on_fit_epoch_end(trainer):
|
|||
|
||||
def on_train_end(trainer):
|
||||
experiment = comet_ml.get_global_experiment()
|
||||
experiment.log_model("YOLOv8", file_or_folder=trainer.best, file_name="best.pt", overwrite=True)
|
||||
experiment.log_model("YOLOv8", file_or_folder=str(trainer.best), file_name="best.pt", overwrite=True)
|
||||
|
||||
|
||||
callbacks = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue