Skip to content

Commit f8fc62f

Browse files
authored
Merge pull request #8 from Bourn3z/dev-offlineinfer
Add the function of concatenating to crops after detection.
2 parents 66c8509 + 04976fd commit f8fc62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/py_infer/src/parallel/module/detection/det_post_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def process(self, input_data):
6666
sub_image = cv_utils.crop_box_from_image(image, np.array(box))
6767
sub_image_list.append(sub_image)
6868
if self.is_concat:
69-
sub_image_list = [self.concat_crops(sub_image_list)]
69+
sub_image_list = len(sub_image_list) * [self.concat_crops(sub_image_list)]
7070
input_data.sub_image_list = sub_image_list
7171

7272
input_data.data = None

0 commit comments

Comments
 (0)