Rename utils/datasets.py > utils/dataloaders.py (#7799)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-05-13 14:34:16 +02:00
1 parent 5a1ef32553
commit 9d8ed37df7
8 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ def kmean_anchors(dataset='./data/coco128.yaml', n=9, img_size=640, thr=4.0, gen
if isinstance(dataset, str): # *.yaml file
with open(dataset, errors='ignore') as f:
data_dict = yaml.safe_load(f) # model dict
from utils.datasets import LoadImagesAndLabels
from utils.dataloaders import LoadImagesAndLabels
dataset = LoadImagesAndLabels(data_dict['train'], augment=True, rect=True)
# Get label wh
File renamed without changes.
+1 -1
View File
@@ -15,7 +15,7 @@ ROOT = FILE.parents[3] # YOLOv5 root directory
if str(ROOT) not in sys.path:
sys.path.append(str(ROOT)) # add ROOT to PATH
from utils.datasets import LoadImagesAndLabels, img2label_paths
from utils.dataloaders import LoadImagesAndLabels, img2label_paths
from utils.general import LOGGER, check_dataset, check_file
try: