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

UserWarning: is_namedtuple is deprecated, please use the python checks instead #10150

Closed
1 of 2 tasks
alicera opened this issue Nov 14, 2022 · 4 comments · Fixed by #10166
Closed
1 of 2 tasks

UserWarning: is_namedtuple is deprecated, please use the python checks instead #10150

alicera opened this issue Nov 14, 2022 · 4 comments · Fixed by #10166
Labels
bug Something isn't working TODO

Comments

@alicera
Copy link

alicera commented Nov 14, 2022

Search before asking

  • I have searched the YOLOv5 issues and found no similar bug report.

YOLOv5 Component

No response

Bug

python train.py # train a model

It show


      0/299      11.2G     0.1063    0.06751    0.02372         55       1280:   0%|          | 5/5593 [00:08<2:09:15,  1.39s/it]                                             /opt/conda/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py:9: UserWarning: is_namedtuple is deprecated, please use the python checks instead
  warnings.warn("is_namedtuple is deprecated, please use the python checks instead")
/opt/conda/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py:9: UserWarning: is_namedtuple is deprecated, please use the python checks instead
  warnings.warn("is_namedtuple is deprecated, please use the python checks instead")
/opt/conda/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py:9: UserWarning: is_namedtuple is deprecated, please use the python checks instead
  warnings.warn("is_namedtuple is deprecated, please use the python checks instead")
      0/299      11.2G     0.1065    0.06844    0.02371         73       1280:   0%|          | 6/5593 [00:09<2:00:24,  1.29s/it]                                             /opt/conda/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py:9: UserWarning: is_namedtuple is deprecated, please use the python checks instead
  warnings.warn("is_namedtuple is deprecated, please use the python checks instead")
/opt/conda/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py:9: UserWarning: is_namedtuple is deprecated, please use the python checks instead
  warnings.warn("is_namedtuple is deprecated, please use the python checks instead")
/opt/conda/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py:9: UserWarning: is_namedtuple is deprecated, please use the python checks instead
  warnings.warn("is_namedtuple is deprecated, please use the python checks instead")
      0/299      11.2G     0.1054    0.06934    0.02372         51       1280:   0%|          | 7/5593 [00:10<1:55:13,  1.24s/it]                                             /opt/conda/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py:9: UserWarning: is_namedtuple is deprecated, please use the python checks instead
  warnings.warn("is_namedtuple is deprecated, please use the python checks instead")
/opt/conda/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py:9: UserWarning: is_namedtuple is deprecated, please use the python checks instead
  warnings.warn("is_namedtuple is deprecated, please use the python checks instead")
/opt/conda/lib/python3.8/site-packages/torch/nn/parallel/scatter_gather.py:9: UserWarning: is_namedtuple is deprecated, please use the python checks instead
  warnings.warn("is_namedtuple is deprecated, please use the python checks instead")
      0/299      11.2G     0.1056    0.06883    0.02371         48       1280:   0%|          | 8/5593 [00:11<1:52:06,  1.20s/it]            

Environment

NVIDIA-Linux-x86_64-515.76

sudo docker pull ultralytics/yolov5:latest (11/14)

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@alicera alicera added the bug Something isn't working label Nov 14, 2022
@glenn-jocher
Copy link
Member

@alicera I'm seeing this also now in Docker with DDP.

Are you training DDP (multi-GPU) when you see this warning?

@glenn-jocher
Copy link
Member

@alicera can you try PR #10166 to see if it removes the warning?

@alicera
Copy link
Author

alicera commented Nov 16, 2022

Yes, I training DDP
I will try it, thanks

@glenn-jocher
Copy link
Member

@alicera you're welcome! Let me know if the PR resolves the issue for you. If you encounter any other issues or have further questions, feel free to ask. Thank you for your patience and support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working TODO
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants