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

No module named 'mmpose.models.registry' #40

Closed
mathpopo opened this issue Jun 8, 2021 · 2 comments
Closed

No module named 'mmpose.models.registry' #40

mathpopo opened this issue Jun 8, 2021 · 2 comments

Comments

@mathpopo
Copy link

mathpopo commented Jun 8, 2021

(base) chenxin@chenxin-Nitro-AN515-52:~/disk1/github/Lite-HRNet/mmpose/mmpose/models$ tree .
.
├── backbones
│   ├── alexnet.py
│   ├── base_backbone.py
│   ├── cpm.py
│   ├── hourglass.py
│   ├── hrnet.py
│   ├── init.py
│   ├── mobilenet_v2.py
│   ├── mobilenet_v3.py
│   ├── mspn.py
│   ├── regnet.py
│   ├── resnest.py
│   ├── resnet.py
│   ├── resnext.py
│   ├── rsn.py
│   ├── scnet.py
│   ├── seresnet.py
│   ├── seresnext.py
│   ├── shufflenet_v1.py
│   ├── shufflenet_v2.py
│   ├── tcn.py
│   ├── utils
│   │   ├── channel_shuffle.py
│   │   ├── init.py
│   │   ├── inverted_residual.py
│   │   ├── make_divisible.py
│   │   ├── se_layer.py
│   │   └── utils.py
│   └── vgg.py
├── builder.py
├── detectors
│   ├── associative_embedding.py
│   ├── base.py
│   ├── init.py
│   ├── interhand_3d.py
│   ├── mesh.py
│   ├── multi_task.py
│   ├── pose_lifter.py
│   └── top_down.py
├── heads
│   ├── ae_higher_resolution_head.py
│   ├── ae_simple_head.py
│   ├── deeppose_regression_head.py
│   ├── hmr_head.py
│   ├── init.py
│   ├── interhand_3d_head.py
│   ├── temporal_regression_head.py
│   ├── topdown_heatmap_base_head.py
│   ├── topdown_heatmap_multi_stage_head.py
│   └── topdown_heatmap_simple_head.py
├── init.py
├── losses
│   ├── classfication_loss.py
│   ├── init.py
│   ├── mesh_loss.py
│   ├── mse_loss.py
│   ├── multi_loss_factory.py
│   └── regression_loss.py
├── misc
│   ├── discriminator.py
│   └── init.py
├── necks
│   ├── gap_neck.py
│   └── init.py
└── utils
├── geometry.py
├── init.py
└── ops.py

8 directories, 60 files

@IanUJo
Copy link

IanUJo commented Jun 9, 2021

Modify it like this:

vi ./models/backbones/litehrnet.py
# from mmpose.models.registry import BACKBONES
from mmpose.models import BACKBONES

vi ./models/builder.py
# from mmpose.models.registry import BACKBONES, HEADS, LOSSES, NECKS, POSENETS
from mmpose.models import BACKBONES, HEADS, LOSSES, NECKS, POSENETS

The cause is probably because the location of the phrase is different depending on the version. If you use 0.14, the phrase exists in registry.py, and if you use 0.15, in builder.py.

@mathpopo
Copy link
Author

mathpopo commented Jun 9, 2021

@IanUJo ok thanks

@mathpopo mathpopo closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants