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\'
Current scipy version 1.3.0 doesn't include toimage() 1.3.0 docs here Try to install scipy 1.2.0 or 1.1.0 1.2.0 docs here with toimage() included.
scipy
toimage()
1.2.0
1.1.0