Skip to content

Commit

Permalink
Modify the data_augment.py to fit the Omniglot Dataset,the operation …
Browse files Browse the repository at this point in the history
…to change the size of the image has been cancelled.
  • Loading branch information
GOKORURI007 committed Jun 15, 2019
1 parent 221b935 commit 248433b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def read_img(path):
print(filename)
file_path = os.path.join(path, filename)
img = io.imread(file_path)
x = transform.resize(img, (w, h, c), mode='constant')
imgs.append(x)
# x = transform.resize(img, (w, h, c), mode='constant')
imgs.append(img) # If you need resize the picture, change it to "imgs.append(x)" .
return np.asarray(imgs, np.float32)

if __name__ == '__main__':
Expand Down

0 comments on commit 248433b

Please sign in to comment.