You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your error report and we appreciate it a lot.
If you feel we have helped you, give us a STAR! 😆
Checklist
I have searched related issues but cannot get the expected help.
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
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
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)
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!
The text was updated successfully, but these errors were encountered:
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.
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
Thanks for your error report and we appreciate it a lot.
If you feel we have helped you, give us a STAR! 😆
Checklist
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.
mmpose/configs/animal_2d_keypoint/topdown_heatmap/ap10k/td-hm_hrnet-w32_8xb64-210e_ap10k-256x256.py
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
mmpose/configs/animal_2d_keypoint/topdown_heatmap/ap10k/td-hm_hrnet-w32_8xb64-210e_ap10k-256x256.py
Environment
pytorch 10.0 others following path of the best practice of the 1.x
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)
You may add addition that may be helpful for locating the problem, such as
$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)Error traceback
If applicable, paste the error traceback here.
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!
The text was updated successfully, but these errors were encountered: