Skip to content

Commit

Permalink
[Fix] Fix pipeline bug in image retrieval inferencer
Browse files Browse the repository at this point in the history
  • Loading branch information
mzr1996 committed Oct 8, 2023
1 parent bb59c9a commit 06bb586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mmpretrain/apis/image_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def build_dataloader(dataset):
# A config of dataset
from mmpretrain.registry import DATASETS
test_pipeline = [dict(type='LoadImageFromFile'), self.pipeline]
prototype.setdefault('pipeline', test_pipeline)
dataset = DATASETS.build(prototype)
dataloader = build_dataloader(dataset)
elif isinstance(prototype, DataLoader):
Expand Down

0 comments on commit 06bb586

Please sign in to comment.