Skip to content

Commit

Permalink
[Fix] Fix link in config checker (open-mmlab#2163)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Louis authored and Tau-J committed Apr 6, 2023
1 parent 9775ce7 commit fd016f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ https://user-images.githubusercontent.com/15977946/124654387-0fd3c500-ded1-11eb-
- Build individual projects with full power of MMPose but not bound up with heavy frameworks
- Checkout new projects:
- [RTMPose](/projects/rtmpose/)
- [YOLOX-Pose](/projects/yolox_pose/)
- [YOLOX-Pose](/projects/yolox-pose/)
- [MMPose4AIGC](/projects/mmpose4aigc/)
- Become a contributors and make MMPose greater. Start your journey from the [example project](/projects/example_project/)

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ https://user-images.githubusercontent.com/15977946/124654387-0fd3c500-ded1-11eb-
- 通过独立项目的形式,利用 MMPose 的强大功能,同时不被代码框架所束缚
- 最新添加的项目包括:
- [RTMPose](/projects/rtmpose/)
- [YOLOX-Pose](/projects/yolox_pose/)
- [YOLOX-Pose](/projects/yolox-pose/)
- [MMPose4AIGC](/projects/mmpose4aigc/)
- 从简单的 [示例项目](/projects/example_project/) 开启您的 MMPose 代码贡献者之旅吧,让我们共同打造更好用的 MMPose!

Expand Down
2 changes: 2 additions & 0 deletions mmpose/apis/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import torch.nn as nn
from mmengine.config import Config
from mmengine.dataset import Compose, pseudo_collate
from mmengine.model.utils import revert_sync_batchnorm
from mmengine.registry import init_default_scope
from mmengine.runner import load_checkpoint
from PIL import Image
Expand Down Expand Up @@ -98,6 +99,7 @@ def init_model(config: Union[str, Path, Config],
init_default_scope(config.get('default_scope', 'mmpose'))

model = build_pose_estimator(config.model)
model = revert_sync_batchnorm(model)
# get dataset_meta in this priority: checkpoint > config > default (COCO)
dataset_meta = None

Expand Down
2 changes: 1 addition & 1 deletion mmpose/models/utils/check_and_update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def display_modifications(head_deleted_dict: Dict, head_append_dict: Dict,
total_info += '```\nshould be updated to\n```\n'
total_info += new_model_info
total_info += '```\nFor more information, please refer to '\
'https://mmpose.readthedocs.io/en/dev-1.x/' \
'https://mmpose.readthedocs.io/en/latest/' \
'guide_to_framework.html#step3-model'

logger: MMLogger = MMLogger.get_current_instance()
Expand Down

0 comments on commit fd016f4

Please sign in to comment.