code: def __init__(
      self,
      images=None,
      paths=None,
      batch_size=1,
      output_dir="output",
      min_size=32,
      max_size=1024,
  ):
      # 变量设置
      self.min_size = min_size
      self.max_size = max_size
  
      self.images = images
      self.paths = paths
      self.batch_size = batch_size
      self.output_dir = output_dir
  
      # 获取原始输入数据
      self.datas = self.load_datas()
  
      # 对原始输入数据进行预处理
      self.input_datas = self.preprocess()
  
file_path: PaddleHub/modules/image/Image_gan/style_transfer/animegan_v2_shinkai_33/processor.py
imports: import base64
  import os
  import time
  import cv2
  import numpy
label_desc: Use image node_id 1 to create a new Processor object  with example: obj = Processor(images, paths, batch_size, output_dir, min_size, max_size)