code: def postprocess(self, outputs, visualization):
      results = []
  
      for im_id, output in enumerate(outputs):
          # 反归一化
          image = (output.squeeze() + 1.0) / 2 * 255
  
          # 限幅
          image = np.clip(image, 0, 255).astype(np.uint8)
  
          # 格式转换
          image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
  
          # 可视化
          if visualization:
              # 检查输出目录
              check_dir(self.output_dir)
  
              # 写入输出图片
              cv2.imwrite(
                  os.path.join(
                      self.output_dir,
                      "%d_%d.jpg" % (im_id, time.time()),
                  ),
                  image,
              )
  
          results.append(image)
  
      # 返回结果
      return results
  
file_path: PaddleHub/modules/image/Image_gan/style_transfer/animegan_v2_paprika_54/processor.py
imports: import base64
  import os
  import time
  import cv2
  import numpy
label_desc: Use image node_id 4 for calling the Processor obj's underlying member method code with example usage: obj.postprocess(outputs, visualization) and returns: results