class labeling corrections

This commit is contained in:
Glenn Jocher
2019-02-11 12:44:12 +01:00
parent ebd682b25c
commit 1ca352b328
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import torch
from utils.utils import xyxy2xywh
class load_images(): # for inference
class LoadImages: # for inference
def __init__(self, path, img_size=416):
if os.path.isdir(path):
image_format = ['.jpg', '.jpeg', '.png', '.tif']
@@ -55,7 +55,7 @@ class load_images(): # for inference
return self.nF # number of files
class load_images_and_labels(): # for training
class LoadImagesAndLabels: # for training
def __init__(self, path, batch_size=1, img_size=608, multi_scale=False, augment=False):
self.path = path
with open(path, 'r') as file: