linxy97 commited on
Commit
1a3b061
1 Parent(s): 266eeb8

Upload MyPipe.py

Browse files
Files changed (1) hide show
  1. MyPipe.py +1 -1
MyPipe.py CHANGED
@@ -43,7 +43,7 @@ class RMBGPipe(Pipeline):
43
  def postprocess(self, inputs, out_name=""):
44
  result = inputs.pop("result")
45
  orig_im_size = inputs.pop("orig_im_size")
46
- orig_image = inputs.pop("orig_image")
47
  result_image = self.postprocess_image(result[0][0], orig_im_size)
48
  if out_name != "":
49
  # if out_name is specified we save the image using that name
 
43
  def postprocess(self, inputs, out_name=""):
44
  result = inputs.pop("result")
45
  orig_im_size = inputs.pop("orig_im_size")
46
+ orig_image = inputs.pop("orig_im")
47
  result_image = self.postprocess_image(result[0][0], orig_im_size)
48
  if out_name != "":
49
  # if out_name is specified we save the image using that name