更新 detacttracking
This commit is contained in:
15
detecttracking/ultralytics/yolo/utils/__init__.py
Normal file
15
detecttracking/ultralytics/yolo/utils/__init__.py
Normal file
@ -0,0 +1,15 @@
|
||||
import importlib
|
||||
import sys
|
||||
|
||||
from ultralytics.utils import LOGGER
|
||||
|
||||
# Set modules in sys.modules under their old name
|
||||
sys.modules['ultralytics.yolo.utils'] = importlib.import_module('ultralytics.utils')
|
||||
|
||||
UTILS_WARNING = """WARNING ⚠️ 'ultralytics.yolo.utils' is deprecated since '8.0.136' and will be removed in '8.1.0'. Please use 'ultralytics.utils' instead.
|
||||
Note this warning may be related to loading older models. You can update your model to current structure with:
|
||||
import torch
|
||||
ckpt = torch.load("model.pt") # applies to both official and custom models
|
||||
torch.save(ckpt, "updated-model.pt")
|
||||
"""
|
||||
LOGGER.warning(UTILS_WARNING)
|
Reference in New Issue
Block a user