想要将numpyarray转换成Image出错,ValueError: Could not save to PNG for display
问题再现cams_H是一个形状为torch.size([1,7,7,3])的tensor,它经历了以下语句:cams_H_np=cams_H.numpy()cams_H_img=Image.fromarray(cams_H_np[0,:,:,0])cams_H_img报错了:--------------------------------------------------------------