Skip to content

Commit

Permalink
typo in code, fixes Issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
iamaaditya committed May 31, 2017
1 parent fb2bda7 commit 2aec8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
labels, label_names = zip(*label_pairs)
labels = map(lambda x: int(x), labels)

label_dict = pd.Series(labels, index = label_names) label_dict - = 1
label_dict = pd.Series(labels, index = label_names) - 1
image_paths_per_label = map(lambda one_dir: map(lambda one_file: os.path.join( tparam.images, one_dir, one_file ), os.listdir( os.path.join( tparam.images, one_dir))), image_dir_list)
image_paths_train = np.hstack(map(lambda one_class: one_class[:-10], image_paths_per_label))

Expand Down

0 comments on commit 2aec8f8

Please sign in to comment.