AttributeError: module 'scipy.misc' has no attribute 'toimage'

后端 未结 5 844
失恋的感觉
失恋的感觉 2021-01-05 06:47

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\'         


        
5条回答
  •  萌比男神i
    2021-01-05 07:19

    Uninstall SciPy and install SciPy v1.2.0

    $ pip uninstall scipy
    
    $ pip install scipy==1.2.0
    

提交回复
热议问题