Skip to content

Commit fbaeda9

Browse files
committed
Fix typo lable -> label
1 parent 4ccef0e commit fbaeda9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def draw_box(img, bboxes):
240240

241241

242242
class Yolo_dataset(Dataset):
243-
def __init__(self, lable_path, cfg, train=True):
243+
def __init__(self, label_path, cfg, train=True):
244244
super(Yolo_dataset, self).__init__()
245245
if cfg.mixup == 2:
246246
print("cutmix=1 - isn't supported for Detector")
@@ -253,7 +253,7 @@ def __init__(self, lable_path, cfg, train=True):
253253
self.train = train
254254

255255
truth = {}
256-
f = open(lable_path, 'r', encoding='utf-8')
256+
f = open(label_path, 'r', encoding='utf-8')
257257
for line in f.readlines():
258258
data = line.split(" ")
259259
truth[data[0]] = []

0 commit comments

Comments
 (0)