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\'
Uninstall SciPy and install SciPy v1.2.0
$ pip uninstall scipy $ pip install scipy==1.2.0