mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
Rename TextDet directories
This commit is contained in:
parent
a2a3b677d8
commit
f820a50752
@ -1,11 +1,11 @@
|
|||||||
# Copyright (c) OpenMMLab. All rights reserved.
|
# Copyright (c) OpenMMLab. All rights reserved.
|
||||||
from . import dense_heads, detectors, losses, necks, postprocess
|
from . import detectors, heads, losses, necks, postprocessors
|
||||||
from .dense_heads import * # NOQA
|
|
||||||
from .detectors import * # NOQA
|
from .detectors import * # NOQA
|
||||||
|
from .heads import * # NOQA
|
||||||
from .losses import * # NOQA
|
from .losses import * # NOQA
|
||||||
from .necks import * # NOQA
|
from .necks import * # NOQA
|
||||||
from .postprocess import * # NOQA
|
from .postprocessors import * # NOQA
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
dense_heads.__all__ + detectors.__all__ + losses.__all__ + necks.__all__ +
|
heads.__all__ + detectors.__all__ + losses.__all__ + necks.__all__ +
|
||||||
postprocess.__all__)
|
postprocessors.__all__)
|
||||||
|
@ -6,7 +6,7 @@ from mmcv.runner import BaseModule
|
|||||||
from mmdet.core import multi_apply
|
from mmdet.core import multi_apply
|
||||||
|
|
||||||
from mmocr.registry import MODELS
|
from mmocr.registry import MODELS
|
||||||
from ..postprocess.utils import poly_nms
|
from ..postprocessors.utils import poly_nms
|
||||||
from .head_mixin import HeadMixin
|
from .head_mixin import HeadMixin
|
||||||
|
|
||||||
|
|
@ -5,7 +5,7 @@ import torch
|
|||||||
from lanms import merge_quadrangle_n9 as la_nms
|
from lanms import merge_quadrangle_n9 as la_nms
|
||||||
from mmcv.ops import RoIAlignRotated
|
from mmcv.ops import RoIAlignRotated
|
||||||
|
|
||||||
from mmocr.models.textdet.postprocess.utils import fill_hole
|
from mmocr.models.textdet.postprocessors.utils import fill_hole
|
||||||
from .utils import (euclidean_distance_matrix, feature_embedding,
|
from .utils import (euclidean_distance_matrix, feature_embedding,
|
||||||
normalize_adjacent_matrix)
|
normalize_adjacent_matrix)
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import mmocr.models.textdet.dense_heads.pan_head as pan_head
|
import mmocr.models.textdet.heads.pan_head as pan_head
|
||||||
|
|
||||||
|
|
||||||
def test_panhead():
|
def test_panhead():
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
from mmocr.models.textdet.dense_heads import DRRGHead
|
from mmocr.models.textdet.heads import DRRGHead
|
||||||
|
|
||||||
|
|
||||||
def test_drrg_head():
|
def test_drrg_head():
|
||||||
|
@ -3,10 +3,11 @@ import numpy as np
|
|||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
from mmocr.models.textdet.postprocess import (DBPostprocessor,
|
from mmocr.models.textdet.postprocessors import (DBPostprocessor,
|
||||||
FCEPostprocessor,
|
FCEPostprocessor,
|
||||||
TextSnakePostprocessor)
|
TextSnakePostprocessor)
|
||||||
from mmocr.models.textdet.postprocess.utils import comps2boundaries, poly_nms
|
from mmocr.models.textdet.postprocessors.utils import (comps2boundaries,
|
||||||
|
poly_nms)
|
||||||
|
|
||||||
|
|
||||||
def test_db_boxes_from_bitmaps():
|
def test_db_boxes_from_bitmaps():
|
||||||
|
@ -7,7 +7,7 @@ from mmengine import InstanceData
|
|||||||
|
|
||||||
from mmocr.core import TextDetDataSample
|
from mmocr.core import TextDetDataSample
|
||||||
from mmocr.core.evaluation.utils import points2polygon, poly_iou
|
from mmocr.core.evaluation.utils import points2polygon, poly_iou
|
||||||
from mmocr.models.textdet.postprocess import BaseTextDetPostProcessor
|
from mmocr.models.textdet.postprocessors import BaseTextDetPostProcessor
|
||||||
|
|
||||||
|
|
||||||
class TestBaseTextDetPostProcessor(unittest.TestCase):
|
class TestBaseTextDetPostProcessor(unittest.TestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user