我想提高照片质量,并在GitHub上找到了neural-enhance。库有问题。
root/test/*.jpg Traceback (most recent call last):
File "enhance.py", line 583, in <module>
img = scipy.ndimage.imread(filename, mode='RGB')
AttributeError: module 'scipy.ndimage' has no attribute 'imread'
答案 0 :(得分:0)
正如this link所说,此功能已从版本1.2.0
中删除。尝试改用imageio.imread
。
import imageio
img = imageio.imread(filename, pilmode ='RGB')