Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Fix demo after PostProcess mask (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmassa authored Nov 20, 2018
1 parent ca9531b commit 6855f23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ def compute_prediction(self, original_image):
# if we have masks, paste the masks in the right position
# in the image, as defined by the bounding boxes
masks = prediction.get_field("mask")
masks = self.masker(masks, prediction)
# always single image is passed at a time
masks = self.masker([masks], [prediction])[0]
prediction.add_field("mask", masks)
return prediction

Expand Down

0 comments on commit 6855f23

Please sign in to comment.