my environment is 1.8.2+cpu,run python create_d2go.py get the following error:
Traceback (most recent call last):
File "D:\AndroidStudioProjects\pytorch18\create_d2go.py", line 10, in
from d2go.export.api import convert_and_export_predictor
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2goinit.py", line 7, in
from d2go import initializer, optimizer # NOQA
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2go\initializer.py", line 67, in
initialize_all()
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2go\initializer.py", line 61, in initialize_all
register_d2_datasets()
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2go\initializer.py", line 17, in timed_f
ret = f(*args, **kwargs)
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2go\initializer.py", line 38, in register_d2_datasets
import detectron2.data # noqa F401
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\detectron2\data_init.py", line 4, in
from .build import (
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\detectron2\data\build.py", line 14, in
from detectron2.structures import BoxMode
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\detectron2\structures_init.py", line 7, in
from .masks import BitMasks, PolygonMasks, polygons_to_bitmask, ROIMasks
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\detectron2\structures\masks.py", line 6, in
import pycocotools.mask as mask_util
File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\pycocotools\mask.py", line 3, in
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 96 from C header, got 88 from PyObject
my environment is 1.8.2+cpu,run python create_d2go.py get the following error:
Traceback (most recent call last): File "D:\AndroidStudioProjects\pytorch18\create_d2go.py", line 10, in from d2go.export.api import convert_and_export_predictor File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2goinit.py", line 7, in from d2go import initializer, optimizer # NOQA File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2go\initializer.py", line 67, in initialize_all() File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2go\initializer.py", line 61, in initialize_all register_d2_datasets() File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2go\initializer.py", line 17, in timed_f ret = f(*args, **kwargs) File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\d2go\initializer.py", line 38, in register_d2_datasets import detectron2.data # noqa F401 File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\detectron2\data_init.py", line 4, in from .build import ( File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\detectron2\data\build.py", line 14, in from detectron2.structures import BoxMode File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\detectron2\structures_init.py", line 7, in from .masks import BitMasks, PolygonMasks, polygons_to_bitmask, ROIMasks File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\detectron2\structures\masks.py", line 6, in import pycocotools.mask as mask_util File "D:\AndroidStudioProjects\pytorch18\venv\lib\site-packages\pycocotools\mask.py", line 3, in 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 96 from C header, got 88 from PyObject
and my python env: pip3 list Package Version
absl-py 1.0.0 aiohttp 3.8.1 aiosignal 1.2.0 antlr4-python3-runtime 4.8 appdirs 1.4.4 async-timeout 4.0.1 attrs 21.2.0 black 21.4b2 cachetools 4.2.4 certifi 2021.10.8 charset-normalizer 2.0.8 click 8.0.3 cloudpickle 2.0.0 colorama 0.4.4 cycler 0.11.0 Cython 0.29.24 d2go 0.0.1b20211127 detectron2 0.6 fonttools 4.28.2 frozenlist 1.2.0 fsspec 2021.11.1 future 0.18.2 fvcore 0.1.5.post20211023 google-auth 2.3.3 google-auth-oauthlib 0.4.6 grpcio 1.42.0 hydra-core 1.1.1 idna 3.3 importlib 1.0.4 importlib-metadata 4.8.2 iopath 0.1.9 kiwisolver 1.3.2 Markdown 3.3.6 matplotlib 3.5.0 mobile-cv 0.1 mock 4.0.3 multidict 5.2.0 mypy-extensions 0.4.3 numpy 1.21.4 oauthlib 3.1.1 omegaconf 2.1.1 opencv-python 4.5.4.60 packaging 21.3 parameterized 0.8.1 pathspec 0.9.0 Pillow 8.4.0 pip 21.3.1 portalocker 2.3.2 protobuf 3.19.1 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycocotools 2.0.3 pyDeprecate 0.3.1 pydot 1.4.2 pyparsing 3.0.6 python-dateutil 2.8.2 pytorch-lightning 1.5.3 pywin32 302 PyYAML 6.0 regex 2021.11.10 requests 2.26.0 requests-oauthlib 1.3.0 rsa 4.8 setuptools 57.0.0 setuptools-scm 6.3.2 six 1.16.0 tabulate 0.8.9 tensorboard 2.7.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.0 termcolor 1.1.0 toml 0.10.2 tomli 1.2.2 torch 1.8.2+cpu torchaudio 0.8.2 torchmetrics 0.6.0 torchvision 0.9.2+cpu tqdm 4.62.3 typing_extensions 4.0.0 urllib3 1.26.7 Werkzeug 2.0.2 wheel 0.36.2 yacs 0.1.8 yarl 1.7.2 zipp 3.6.0
can anyone give some help?