Skip to content

Commit

Permalink
Readd reshape to base preprocessor
Browse files Browse the repository at this point in the history
Seems to save a lot of storage space for some unknown reason
  • Loading branch information
jacobbieker committed Oct 26, 2018
1 parent e20ae3f commit e8e8745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions factnn/preprocess/base_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def reformat(self, image):
:return:
"""
dataset = np.swapaxes(image, 1, 3)
dataset = np.array(dataset).reshape((self.shape[0], self.shape[3], self.shape[2], self.shape[1])).astype(np.float32)
return dataset

def format(self, batch):
Expand Down

0 comments on commit e8e8745

Please sign in to comment.