Skip to content

Commit

Permalink
Del extra masks check
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrasov committed Jul 7, 2023
1 parent 97ac9d4 commit 22dce9a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ def _merge_results(self, results, shape):
detections_array, keep_idxs = _multiclass_nms(
detections_array, max_num=self.max_pred_number
)

if masks:
masks = [masks[keep_idx] for keep_idx in keep_idxs]
masks = [masks[keep_idx] for keep_idx in keep_idxs]

merged_vector = (
np.mean(feature_vectors, axis=0) if feature_vectors else np.ndarray(0)
Expand Down

0 comments on commit 22dce9a

Please sign in to comment.