Upload MyPipe.py
Browse files
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("
|
| 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
|