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_…