Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chhluo committed Aug 22, 2022
1 parent 8126d07 commit 7638ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdet/testing/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import numpy as np
import torch
from mmengine.config import Config
from mmengine.data import InstanceData, PixelData

from ..registry import TASK_UTILS
Expand All @@ -27,7 +28,6 @@ def _get_config_directory():

def _get_config_module(fname):
"""Load a configuration as a python module."""
from mmengine import Config
config_dpath = _get_config_directory()
config_fpath = join(config_dpath, fname)
config_mod = Config.fromfile(config_fpath)
Expand Down

0 comments on commit 7638ce2

Please sign in to comment.