Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Use imsave from skimage instead of scipy.
Browse files Browse the repository at this point in the history
Fixes #177.
  • Loading branch information
constantinpape committed Jun 6, 2019
1 parent 5158e7d commit 564c9cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inferno/utils/io_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import h5py as h5
import numpy as np
import yaml
from scipy.misc import imsave
from skimage.io import imsave


# Function to load in a dataset from a h5file
Expand Down Expand Up @@ -61,7 +61,7 @@ def _print_image(image, prefix, batch, channel, z=None):
else:
file_name = "{}--B-{}--CH-{}--Z-{}.png".format(prefix, batch, channel, z)
full_file_name = os.path.join(directory, file_name)
imsave(arr=image, name=full_file_name)
imsave(arr=image, fname=full_file_name)

for batch in range(tensor.shape[0]):
for channel in range(tensor.shape[1]):
Expand Down

0 comments on commit 564c9cd

Please sign in to comment.