Skip to content

Commit 6ff3c93

Browse files
authored
There was an error when using a model from the mmyolo repository during image preprocessing, provided that an array was supplied as input. If you input the path to the image, everything works fine. (#2554)
1 parent 660af62 commit 6ff3c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmdeploy/codebase/mmdet/deploy/object_detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def process_model_config(model_cfg: Config,
6060
if isinstance(imgs[0], np.ndarray):
6161
cfg = cfg.copy()
6262
# set loading pipeline type
63-
cfg.test_pipeline[0].type = 'LoadImageFromNDArray'
63+
cfg.test_pipeline[0].type = 'mmdet.LoadImageFromNDArray'
6464

6565
pipeline = cfg.test_pipeline
6666

0 commit comments

Comments
 (0)