Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Reorganize distillers #2658

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions mmpose/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@
build_head, build_loss, build_neck, build_pose_estimator,
build_posenet)
from .data_preprocessors import * # noqa
from .distillers import * # noqa
from .heads import * # noqa
from .losses import * # noqa
from .necks import * # noqa
from .pose_estimators import * # noqa

__all__ = [
'BACKBONES', 'HEADS', 'NECKS', 'LOSSES', 'build_backbone', 'build_head',
'build_loss', 'build_posenet', 'build_neck', 'build_pose_estimator'
'BACKBONES',
'HEADS',
'NECKS',
'LOSSES',
'build_backbone',
'build_head',
'build_loss',
'build_posenet',
'build_neck',
'build_pose_estimator',
]
4 changes: 4 additions & 0 deletions mmpose/models/distillers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
from .dwpose_distiller import DWPoseDistiller

__all__ = ['DWPoseDistiller']
6 changes: 1 addition & 5 deletions mmpose/models/pose_estimators/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Copyright (c) OpenMMLab. All rights reserved.
from .bottomup import BottomupPoseEstimator
from .dwpose_distiller import DWPoseDistiller
from .pose_lifter import PoseLifter
from .topdown import TopdownPoseEstimator

__all__ = [
'TopdownPoseEstimator', 'BottomupPoseEstimator', 'PoseLifter',
'DWPoseDistiller'
]
__all__ = ['TopdownPoseEstimator', 'BottomupPoseEstimator', 'PoseLifter']