code: def __init__(self):
      super(U2Netp, self).__init__()
      self.model = U2NETP(3, 1)
      state_dict = paddle.load(
          os.path.join(self.directory, "u2netp.pdparams")
      )
      self.model.set_dict(state_dict)
      self.model.eval()
  
file_path: PaddleHub/modules/image/semantic_segmentation/U2Netp/module.py
imports: import os
  import paddle
  import paddle.nn
  import numpy
  from U2Netp.u2net import U2NETP
  from U2Netp.processor import Processor
  from paddlehub.module.module import moduleinfo
label_desc: Use image node_id 1 to create a new U2Netp object from inherited base classes: nn with example: obj = U2Netp()