AttributeError: module 'scipy.misc' has no attribute 'toimage'
问题 While executing the below code: scipy.misc.toimage(output * 255, high=255, low=0, cmin=0, cmax=255).save( params.result_dir + 'final/%5d_00_%d_out.png' % (test_id, ratio)) I get the below error: AttributeError: module 'scipy.misc' has no attribute 'toimage' I tried installing Pillow as mentioned here: scipy.misc module has no attribute imread? But the same error persisted. Please help. Thanks. 回答1: The scipy.misc.toimage() function was deprecated in Scipy 1.0.0, and was completely removed in