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

AttributeError: module 'numpy' has no attribute 'int64' #49

Open
wwcc1107 opened this issue Jul 1, 2022 · 2 comments
Open

AttributeError: module 'numpy' has no attribute 'int64' #49

wwcc1107 opened this issue Jul 1, 2022 · 2 comments

Comments

@wwcc1107
Copy link

wwcc1107 commented Jul 1, 2022

No description provided.

@wwcc1107
Copy link
Author

wwcc1107 commented Jul 1, 2022

python /home/mmdetection/tools/featuremap_analyze.py /home/mmdetection/configs/yolo/yolov3_mobilenetv2_320_300e_coco.py /home/mmdetection/mmdetection/checkpoints/retinanet_r50_fpn_1x_coco_20200130-c2398f9e.pth --img_dir /home/mmdetection/demo/demo --output_dir /home/mmdetection/Dataset/dir

when i want to use it in mmdetection ,there is an error.

Error:
Traceback (most recent call last):
File "/home/wangchang2/mmdetection/mmdetection/tools/featuremap_analyze.py", line 5, in
import cv2
File "/home/wangchang2/anaconda3/envs/mmdeploy/lib/python3.7/site-packages/cv2/init.py", line 11, in
import numpy
File "/home/wangchang2/anaconda3/envs/mmdeploy/lib/python3.7/site-packages/numpy/init.py", line 138, in
from ._version import get_versions
File "/home/wangchang2/anaconda3/envs/mmdeploy/lib/python3.7/site-packages/numpy/_version.py", line 7, in
import json
File "/home/wangchang2/mmdetection/mmdetection/tools/json.py", line 5, in
import mmcv
File "/home/wangchang2/anaconda3/envs/mmdeploy/lib/python3.7/site-packages/mmcv/init.py", line 3, in
from .arraymisc import *
File "/home/wangchang2/anaconda3/envs/mmdeploy/lib/python3.7/site-packages/mmcv/arraymisc/init.py", line 2, in
from .quantization import dequantize, quantize
File "/home/wangchang2/anaconda3/envs/mmdeploy/lib/python3.7/site-packages/mmcv/arraymisc/quantization.py", line 5, in
def quantize(arr, min_val, max_val, levels, dtype=np.int64):
AttributeError: module 'numpy' has no attribute 'int64'

@wwcc1107
Copy link
Author

wwcc1107 commented Jul 1, 2022

just lower numpy to 1.19.0,it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant