Skip to content

Commit

Permalink
Bug fix in dataset loading
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed Jan 8, 2018
1 parent 751e7cf commit badaafd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions train/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def loadDataset(split_seed=42, folder='', split=True, augmented=True):
y[idx] = x_center / width

image_path = '{}/{}.jpg'.format(folder, images_dict[name]['output_name'])
path = images_dict[name]['output_name']
image_path = '{}/{}.jpg'.format(folder, path)
im = cv2.imread(image_path)
# Resize and normalize input
X[idx, :] = preprocessImage(im, WIDTH, HEIGHT)
Expand Down

0 comments on commit badaafd

Please sign in to comment.