Skip to content

Commit a853c38

Browse files
author
Soobee Lee
authored
Move all model utils and dataloaders/samplers in mpa to otx adapter (#1930)
1 parent d21baaf commit a853c38

File tree

39 files changed

+172
-222
lines changed

39 files changed

+172
-222
lines changed

docs/source/guide/reference/mpa/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Model Preparation Algorithm
44
.. toctree::
55
:maxdepth: 1
66

7-
modules/index
87
classification
98
detection
109
segmentation
11-
utils

docs/source/guide/reference/mpa/modules/datasets.rst

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/source/guide/reference/mpa/modules/index.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/source/guide/reference/mpa/modules/models/index.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/guide/reference/mpa/modules/models/losses.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/source/guide/reference/mpa/modules/models/utils.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/source/guide/reference/mpa/modules/utils.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/source/guide/reference/mpa/utils.rst

Lines changed: 0 additions & 27 deletions
This file was deleted.

otx/algorithms/common/adapters/mmcv/hooks/composed_dataloaders_hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from mmcv.runner import HOOKS, Hook
99
from torch.utils.data import DataLoader
1010

11+
from otx.algorithms.common.adapters.torch.dataloaders import ComposedDL
1112
from otx.algorithms.common.utils.logger import get_logger
12-
from otx.mpa.modules.datasets.composed_dataloader import ComposedDL
1313

1414
logger = get_logger()
1515

otx/algorithms/common/adapters/mmcv/hooks/task_adapt_hook.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
from mmcv.runner import HOOKS, Hook, get_dist_info
77
from torch.utils.data import DataLoader
88

9+
from otx.algorithms.common.adapters.torch.dataloaders.samplers import (
10+
BalancedSampler,
11+
ClsIncrSampler,
12+
)
913
from otx.algorithms.common.utils.logger import get_logger
10-
from otx.mpa.modules.datasets.samplers.balanced_sampler import BalancedSampler
11-
from otx.mpa.modules.datasets.samplers.cls_incr_sampler import ClsIncrSampler
1214

1315
logger = get_logger()
1416

0 commit comments

Comments
 (0)