Skip to content

Commit

Permalink
There was an error when using a model from the mmyolo repository duri…
Browse files Browse the repository at this point in the history
…ng image preprocessing, provided that an array was supplied as input. If you input the path to the image, everything works fine. (#2554)
  • Loading branch information
Danil328 authored Dec 14, 2023
1 parent 660af62 commit 6ff3c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdeploy/codebase/mmdet/deploy/object_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def process_model_config(model_cfg: Config,
if isinstance(imgs[0], np.ndarray):
cfg = cfg.copy()
# set loading pipeline type
cfg.test_pipeline[0].type = 'LoadImageFromNDArray'
cfg.test_pipeline[0].type = 'mmdet.LoadImageFromNDArray'

pipeline = cfg.test_pipeline

Expand Down

0 comments on commit 6ff3c93

Please sign in to comment.