ultralytics 8.3.27 HUB timed training fix (#17298)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
7cb36d64b2
commit
3a4b65c347
4 changed files with 11 additions and 12 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||
|
||||
__version__ = "8.3.26"
|
||||
__version__ = "8.3.27"
|
||||
|
||||
import os
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ class BaseTrainer:
|
|||
self.save_period = self.args.save_period
|
||||
|
||||
self.batch_size = self.args.batch
|
||||
self.epochs = self.args.epochs
|
||||
self.epochs = self.args.epochs or 100 # in case users accidentally pass epochs=None with timed training
|
||||
self.start_epoch = 0
|
||||
if RANK == -1:
|
||||
print_args(vars(self.args))
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ from ultralytics.utils import (
|
|||
AUTOINSTALL,
|
||||
IS_COLAB,
|
||||
IS_GIT_DIR,
|
||||
IS_JUPYTER,
|
||||
IS_KAGGLE,
|
||||
IS_PIP_PACKAGE,
|
||||
LINUX,
|
||||
|
|
@ -569,11 +568,8 @@ def check_yolo(verbose=True, device=""):
|
|||
|
||||
from ultralytics.utils.torch_utils import select_device
|
||||
|
||||
if IS_JUPYTER:
|
||||
if check_requirements("wandb", install=False):
|
||||
os.system("pip uninstall -y wandb") # uninstall wandb: unwanted account creation prompt with infinite hang
|
||||
if IS_COLAB:
|
||||
shutil.rmtree("sample_data", ignore_errors=True) # remove colab /sample_data directory
|
||||
if IS_COLAB:
|
||||
shutil.rmtree("sample_data", ignore_errors=True) # remove colab /sample_data directory
|
||||
|
||||
if verbose:
|
||||
# System info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue