We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
3.x branch https://github.com/open-mmlab/mmdetection/tree/3.x
mmdet/datasets/transforms/loading.py of 3.x brach contains two wrong type np.bool as follows.
mmdet/datasets/transforms/loading.py
np.bool
Line #273 & #359: results['gt_ignore_flags'] = np.array(gt_ignore_flags, dtype=np.bool)
results['gt_ignore_flags'] = np.array(gt_ignore_flags, dtype=np.bool)
It should be replaced by np.bool_.
np.bool_
demo/image_demo.py
python demo/image_demo.py demo/demo.jpg yolov3_mobilenetv2_8xb24-320-300e_coco.py yolov3_mobilenetv2_320_300e_coco_20210719_215349-d18dff72.pth --device cuda --out-file result.jpg
AttributeError: module 'numpy' has no attribute 'bool'. Did you mean: 'bool_'?
No response
The text was updated successfully, but these errors were encountered:
This bug has been fixed in #9537
Sorry, something went wrong.
Could you please explain in detail? I still failed to run this demo.
By installing "mmdet==3.0.0rc2", the problem solved. However version rc3~rc5 still have the problem.
想借此提一个建议,您们的项目非常优秀,文档也很好,但是各版本之间的关系似乎十分混乱,而且每个版本的文档都不太相同,导致想运行demo都要花费一定的努力。个人观感仅供参考。
Czm369
No branches or pull requests
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
3.x branch https://github.com/open-mmlab/mmdetection/tree/3.x
Environment
mmdet/datasets/transforms/loading.py
of 3.x brach contains two wrong typenp.bool
as follows.It should be replaced by
np.bool_
.Reproduces the problem - code sample
demo/image_demo.py
Reproduces the problem - command or script
Reproduces the problem - error message
Additional information
No response
The text was updated successfully, but these errors were encountered: