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

Expected 88 from C header, got 80 from PyObject #425

Closed
ktro2828 opened this issue Apr 8, 2021 · 4 comments
Closed

Expected 88 from C header, got 80 from PyObject #425

ktro2828 opened this issue Apr 8, 2021 · 4 comments

Comments

@ktro2828
Copy link

ktro2828 commented Apr 8, 2021

I run tools/train.py, then I got this error,

Traceback (most recent call last):
  File "tools/train.py", line 16, in <module>
    from mmdet3d.datasets import build_dataset
  File "/home/leus/autoware/mmdetection3d/mmdet3d/datasets/__init__.py", line 1, in <module>
    from mmdet.datasets.builder import build_dataloader
  File "/home/leus/.local/share/virtualenvs/mmdetection3d-rnRHe6mf/lib/python3.8/site-packages/mmdet/datasets/__init__.py", line 2, in <module>
    from .cityscapes import CityscapesDataset
  File "/home/leus/.local/share/virtualenvs/mmdetection3d-rnRHe6mf/lib/python3.8/site-packages/mmdet/datasets/cityscapes.py", line 12, in <module>
    import pycocotools.mask as maskUtils
  File "/home/leus/.local/share/virtualenvs/mmdetection3d-rnRHe6mf/lib/python3.8/site-packages/pycocotools/mask.py", line 3, in <module>
    import pycocotools._mask as _mask
  File "pycocotools/_mask.pyx", line 1, in init pycocotools._mask
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

from this issue #301, I tried

pip uninstall pycocotools
pip uninstall mmpycocotools
pip install mmpycocotools

but it doesn't work...

My environment

  • cuda=10.2
  • Python==3.8
  • torch==1.7.0
  • mmcv-full==1.3.0
  • mmdet==2.11.0
  • mmdet3d==0.12.0
  • mmpycocotools==12.0.3

can anyone help me??

@ktro2828 ktro2828 closed this as completed Apr 8, 2021
@ktro2828
Copy link
Author

I found that I got error with Python==3.8.8 although got no error with Python==3.6.9

@ZhangYu1ing
Copy link

Did you get this error when you run tools/create_data.py?

@ktro2828
Copy link
Author

Yes, I got this error with python3.8.8, when I run tools/create_data.py

@pigtigger
Copy link

i got this erro with python3.7 ,did you figure it out?

tpoisonooo pushed a commit to tpoisonooo/mmdetection3d that referenced this issue Sep 5, 2022
* make regression test as a module under project

* using `--codebase` instead of  `--deploy-yml`

* Improve doc for `--codebase`

* Add shorter arg  `-p` for `--performance`

* make `checopoint-dir` as an arg for the script

* Gen error log when convert fail.

* Improve res code for testing

* Doc add sdk test detail

* Doc add env setup

* Fix lint

* Fix doc lint

* Improve model path in report

* Improve report title

* Improve report checkpoint path

* Fix lint

* move test yaml under `tests/regression`

* Improve the test yaml path

* Fix lint

* Improve doc

* make func `update_report` code better

* move doc to new location

* Fix arg

* Update arg details

* Use cpu when openvino and onnxruntime cpu package

* Fix word

* Fix func of openpyxl 3.0.9

* Add some info

* Fix lint

* Fix filename

* Fix doc link

* Fix dir name with space when is not sdk

* Add args `--models` for test specific model(s)

* not saving report when no model in codebase when using `--models`

* Fix doc

* Fix lint

* Add table for metric in doc

* Improve table for doc

* Using `None` install of `['all']`

* Improce doc

* set device type properly

* Increate popen bufsize

* Add `precision_type` in `work-dir`

* Fix popen stuck

* Fix lint

* Fix lint

* Fix popen stuck by using file handler

* Make metric dataset as a list

* Update mmseg.yml

* Remove 'FPS' in the report

* Update do_regression_test.md

* Improve log

* Fix codespell

* Fix doc

* ncnn only save `xxx.param` as checkpoint name in the report

Co-authored-by: maningsheng <[email protected]>
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

3 participants