Skip to content

Commit

Permalink
conversion not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
yinguobing committed Jul 4, 2019
1 parent 308f301 commit 73b9f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extract_face_from_MAFA.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def load_labels(label_file, is_train):
out = hdf5storage.loadmat(label_file)
samples = []
if is_train:
record = np.array(out['label_train'])[0]
record = out['label_train'][0]
for item in record:
samples.append(
{
Expand All @@ -33,7 +33,7 @@ def load_labels(label_file, is_train):
}
)
else:
record = np.array(out['LabelTest'])[0]
record = out['LabelTest'][0]
for item in record:
samples.append(
{
Expand Down

0 comments on commit 73b9f90

Please sign in to comment.