aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.38k stars 650 forks source link

UserWarning: This overload of nonzero is deprecated: #308

Open KHKHG opened 3 years ago

KHKHG commented 3 years ago

[02/19 03:36:20 adet.trainer]: Starting training from iteration 0 /root/AdelaiDet/detectron2/detectron2/structures/masks.py:348: UserWarning: This overload of nonzero is deprecated: nonzero() Consider using one of the following signatures instead: nonzero(, bool as_tuple) (Triggered internally at /opt/conda/conda-bld/pytorch_1595629427478/work/torch/csrc/utils/python_arg_parser.cpp:766.) item = item.nonzero().squeeze(1).cpu().numpy().tolist() /root/AdelaiDet/detectron2/detectron2/structures/masks.py:348: UserWarning: This overload of nonzero is deprecated: nonzero() Consider using one of the following signatures instead: nonzero(, bool as_tuple) (Triggered internally at /opt/conda/conda-bld/pytorch_1595629427478/work/torch/csrc/utils/python_arg_parser.cpp:766.) item = item.nonzero().squeeze(1).cpu().numpy().tolist() /root/AdelaiDet/detectron2/detectron2/structures/masks.py:348: UserWarning: This overload of nonzero is deprecated: nonzero() Consider using one of the following signatures instead: nonzero(, bool as_tuple) (Triggered internally at /opt/conda/conda-bld/pytorch_1595629427478/work/torch/csrc/utils/python_arg_parser.cpp:766.) item = item.nonzero().squeeze(1).cpu().numpy().tolist() /root/AdelaiDet/detectron2/detectron2/structures/masks.py:348: UserWarning: This overload of nonzero is deprecated: nonzero() Consider using one of the following signatures instead: nonzero(, bool as_tuple) (Triggered internally at /opt/conda/conda-bld/pytorch_1595629427478/work/torch/csrc/utils/python_arg_parser.cpp:766.) item = item.nonzero().squeeze(1).cpu().numpy().tolist()

KHKHG commented 3 years ago

the other infomation:https://github.com/facebookresearch/detectron2/issues/2627#issue-808549112