Skip to content

Commit

Permalink
fix datasets import bug (open-mmlab#1943)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Louis authored and ly015 committed Feb 21, 2023
1 parent 2fc9cdd commit d834b1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mmpose/datasets/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np
import torch
from mmengine import build_from_cfg, is_seq_of
from torch.utils.data.dataset import ConcatDataset
from mmengine.dataset import ConcatDataset, RepeatDataset

from mmpose.registry import DATASETS

Expand Down Expand Up @@ -64,7 +64,6 @@ def build_dataset(cfg, default_args=None):
Returns:
Dataset: The constructed dataset.
"""
from .dataset_wrappers import RepeatDataset

if isinstance(cfg, (list, tuple)):
dataset = ConcatDataset([build_dataset(c, default_args) for c in cfg])
Expand Down

0 comments on commit d834b1b

Please # to comment.