Skip to content

Commit

Permalink
Remove use of deprecated np.float
Browse files Browse the repository at this point in the history
  • Loading branch information
anishathalye committed Dec 24, 2022
1 parent befc07b commit 049d227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neural_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def main():


def imread(path):
img = np.array(Image.open(path)).astype(np.float)
img = np.array(Image.open(path)).astype(np.float32)
if len(img.shape) == 2:
# grayscale
img = np.dstack((img, img, img))
Expand Down

0 comments on commit 049d227

Please sign in to comment.