Skip to content

Commit

Permalink
move misc.py from mmpose.utils to mmpose.model.utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ly015 committed Jun 3, 2022
1 parent 2d19d9f commit 811450c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mmpose/models/detectors/multiview_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from mmpose.core.camera import SimpleCamera, SimpleCameraTorch
from mmpose.core.post_processing.post_transforms import (
affine_transform_torch, get_affine_transform)
from mmpose.utils.misc import torch_meshgrid_ij
from .. import builder
from ..builder import POSENETS
from ..utils.misc import torch_meshgrid_ij
from .base import BasePose


Expand Down
8 changes: 7 additions & 1 deletion mmpose/models/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Copyright (c) OpenMMLab. All rights reserved.
from ops import resize
from realnvp import RealNVP

from .ckpt_convert import pvt_convert
from .geometry import batch_rodrigues, quat_to_rotmat, rot6d_to_rotmat
from .misc import torch_meshgrid_ij
from .smpl import SMPL
from .transformer import PatchEmbed, PatchMerging, nchw_to_nlc, nlc_to_nchw

__all__ = [
'SMPL', 'PatchEmbed', 'nchw_to_nlc', 'nlc_to_nchw', 'pvt_convert',
'PatchMerging'
'PatchMerging', 'batch_rodrigues', 'quat_to_rotmat', 'rot6d_to_rotmat',
'resize', 'RealNVP', 'torch_meshgrid_ij'
]
File renamed without changes.

0 comments on commit 811450c

Please sign in to comment.