code: def __init__(self):
      self.pretrained_model = os.path.join(
          self.directory, "enlighten_inference/pd_model"
      )
      self.model = ONNXModel()
      params = paddle.load(
          os.path.join(self.pretrained_model, "model.pdparams")
      )
      self.model.set_dict(params, use_structured_name=True)
  
file_path: PaddleHub/modules/image/image_processing/enlightengan/module.py
imports: import argparse
  import os
  import cv2
  import numpy
  import paddle
  import paddlehub
  from .enlighten_inference.pd_model.x2paddle_code import ONNXModel
  from .util import base64_to_cv2
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
label_desc: Use image node_id 1 to create a new EnlightenGAN object  with example: obj = EnlightenGAN()