Skip to content

Commit

Permalink
debug intern library
Browse files Browse the repository at this point in the history
  • Loading branch information
David Traparic committed Nov 13, 2024
1 parent 2979044 commit d69e9ab
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions mmcv/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) OpenMMLab. All rights reserved.
# flake8: noqa
from .arraymisc import *
from .image import *
# from .transforms import *
from .version import *
from .video import *
from .visualization import *
from .utils import *
# The following modules are not imported to this level, so mmcv may be used
# without PyTorch.
# - op
# - utils
2 changes: 1 addition & 1 deletion mmcv/ops/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) OpenMMLab. All rights reserved.
from mmcv.utils import IS_MLU_AVAILABLE
from .active_rotated_filter import active_rotated_filter
# from .active_rotated_filter import active_rotated_filter
from .assign_score_withk import assign_score_withk
from .ball_query import ball_query
from .bbox import bbox_overlaps
Expand Down
2 changes: 1 addition & 1 deletion mmcv/parallel/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from torch.nn.parallel.distributed import (DistributedDataParallel,
_find_tensors)

from mmcv import print_log
from mmcv.utils.logging import print_log
from mmcv.utils import TORCH_VERSION, digit_version
from .scatter_gather import ScatterInputs, scatter_kwargs

Expand Down
2 changes: 2 additions & 0 deletions mmcv/utils/ext_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
if torch.__version__ != 'parrots':

def load_ext(name, funcs):
if name == '_ext':
return 0
ext = importlib.import_module('mmcv.' + name)
for fun in funcs:
assert hasattr(ext, fun), f'{fun} miss in module {name}'
Expand Down

0 comments on commit d69e9ab

Please sign in to comment.