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

A "mmengine - WARNING" #1699

Closed
SicongLiu998 opened this issue Oct 4, 2022 · 3 comments
Closed

A "mmengine - WARNING" #1699

SicongLiu998 opened this issue Oct 4, 2022 · 3 comments
Labels
info/1.x Issue/PR related to branch 1.x question Further information is requested

Comments

@SicongLiu998
Copy link

Thanks for your error report and we appreciate it a lot.
If you feel we have helped you, give us a STAR! 😆

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. The bug has not been fixed in the latest version(1.x).

When I try to use the new version to train a model, I met a warning.

A clear and concise description of what the bug is.

10/04 17:52:45 - mmengine - WARNING - Failed to search registry with scope "mmpose" in the "data sampler" registry tree. As a workaround, the current "data sampler" registry in "mmengine" is used to build instance. This may cause unexpected failure when running the built modules. Please check whether "mmpose" is a correct scope, or whether the registry is initialized.
10/04 17:52:45 - mmengine - WARNING - Failed to search registry with scope "mmpose" in the "optimizer wrapper constructor" registry tree. As a workaround, the current "optimizer wrapper constructor" registry in "mmengine" is used to build instance. This may cause unexpected failure when running the built modules. Please check whether "mmpose" is a correct scope, or whether the registry is initialized.
10/04 17:52:45 - mmengine - WARNING - Failed to search registry with scope "mmpose" in the "optimizer" registry tree. As a workaround, the current "optimizer" registry in "mmengine" is used to build instance. This may cause unexpected failure when running the built modules. Please check whether "mmpose" is a correct scope, or whether the registry is initialized.

  • What command or script did you run?
    mmpose/configs/animal_2d_keypoint/topdown_heatmap/ap10k/td-hm_hrnet-w32_8xb64-210e_ap10k-256x256.py
A placeholder for the command.

bash tools/dist_train.sh /home/lsc/桌面/pose/pose2/mmpose/configs/animal_2d_keypoint/topdown_heatmap/ap10k/td-hm_hrnet-w32_8xb64-210e_ap10k-256x256.py 1

  • What config did you run?
    mmpose/configs/animal_2d_keypoint/topdown_heatmap/ap10k/td-hm_hrnet-w32_8xb64-210e_ap10k-256x256.py
A placeholder for the config.
  • Did you make any modifications on the code or config? Did you understand what you have modified?
  • No, I did not
  • What dataset did you use?
  • AP-10K

Environment
pytorch 10.0 others following path of the best practice of the 1.x

  1. Please run PYTHONPATH=${PWD}:$PYTHONPATH python mmpose/utils/collect_env.py to collect necessary environment information and paste it here.
    File "mmpose/utils/collect_env.py", line 2, in
    from mmengine.utils import get_git_hash
    File "/home/lsc/anaconda3/envs/openmmpose/lib/python3.8/site-packages/mmengine/init.py", line 3, in
    from .config import *
    File "/home/lsc/anaconda3/envs/openmmpose/lib/python3.8/site-packages/mmengine/config/init.py", line 2, in
    from .config import Config, ConfigDict, DictAction
    File "/home/lsc/anaconda3/envs/openmmpose/lib/python3.8/site-packages/mmengine/config/config.py", line 15, in
    from typing import Any, Optional, Sequence, Tuple, Union
    File "/home/lsc/桌面/pose/pose2/mmpose/mmpose/utils/typing.py", line 2, in
    from typing import Dict, List, Optional, Tuple, Union
    ImportError: cannot import name 'Dict' from partially initialized module 'typing' (most likely due to a circular import) (/home/lsc/桌面/pose/pose2/mmpose/mmpose/utils/typing.py)

  2. You may add addition that may be helpful for locating the problem, such as

  • How you installed PyTorch [e.g., pip, conda, source]
  • Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)
  • I have used conda

Error traceback

If applicable, paste the error traceback here.

A placeholder for traceback.

Bug fix

If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

@ly015
Copy link
Member

ly015 commented Oct 8, 2022

This warning is probably because that MMPose uses the default data samplers and optimizer wrapper constructors provided by MMEngine for now, and doesn't define these registries under the scope mmpose. You can safely ignore these warnings. We will optimize the warning trigger condition.

@jin-s13 jin-s13 added the question Further information is requested label Oct 8, 2022
@SicongLiu998
Copy link
Author

Thanks a lot for your reply and your great work ! I am looking forward to your stable version of MMPose 1.0.

@ly015 ly015 added the info/1.x Issue/PR related to branch 1.x label Dec 1, 2022
@ly015
Copy link
Member

ly015 commented Dec 2, 2022

Update: the warning turned out to be triggered by some missing registries in MMPose (the default registry in MMEngine will be used instead with the warning raised). It has been fixed in #1849

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info/1.x Issue/PR related to branch 1.x question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants