From 55e4466258899235d39bd78511609a5b4aa07e4d Mon Sep 17 00:00:00 2001 From: WU Yue Date: Mon, 29 Apr 2024 19:56:16 -0700 Subject: [PATCH] Update inference.py cross libaries calling will results in unregistered error if not prefixed --- mmrotate/apis/inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmrotate/apis/inference.py b/mmrotate/apis/inference.py index 03a4db1fe..bbcbaeca6 100644 --- a/mmrotate/apis/inference.py +++ b/mmrotate/apis/inference.py @@ -60,7 +60,7 @@ def inference_detector_by_patches( 'type'] != 'LoadPanopticAnnotations': new_test_pipeline.append(pipeline) # set loading pipeline type - test_pipeline[0].type = 'LoadPatchFromNDArray' + test_pipeline[0].type = 'mmrotate.LoadPatchFromNDArray' test_pipeline = Compose(new_test_pipeline) if model.data_preprocessor.device.type == 'cpu':