Answers for "ImportError: cannot import name 'imread'"

0

ImportError: cannot import name 'imread'

This function is depricated so we have two opition to solve this error. 
1. Use older version of scipy. You need use scipy version 1.1.0
2. You can replace this import scipy.ndimage import imread by from imageio import imread
i.e. img = imread(path, as_gray=True).astype(int)
Posted by: Guest on April-01-2021

Code answers related to "ImportError: cannot import name 'imread'"

Browse Popular Code Answers by Language