Megvii-BaseDetection / Megvii-BaseDetection/YOLOX
Demo.py error (Expected 88 from C header, got 80 from PyObject)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
Traceback (most recent call last):
File "C:/Users/Ike/PycharmProjects/YOLOXX/tools/demo.py", line 14, in
from yolox.data.data_augment import ValTransform
File "C:\Users\Ike\PycharmProjects\YOLOXX\yolox\data_init_.py", line 8, in
from .datasets import *
File "C:\Users\Ike\PycharmProjects\YOLOXX\yolox\data\datasets_init_.py", line 5, in
from .coco import COCODataset
File "C:\Users\Ike\PycharmProjects\YOLOXX\yolox\data\datasets\coco.py", line 10, in
from pycocotools.coco import COCO
File "C:\Users\Ike\anaconda3\envs\pytorchGPU\lib\site-packages\pycocotools\coco.py", line 55, in
from . import mask as maskUtils
File "C:\Users\Ike\anaconda3\envs\pytorchGPU\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 88 from C header, got 80 from PyObject
Process finished with exit code 1
Any lead on this issue?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at tools/demo.py line 14 and follow the import chain through yolox/data/datasets/coco.py to pycocotools.coco and pycocotools._mask. Inspect the NumPy and pycocotools versions in the reported Anaconda environment, then verify that running tools/demo.py completes the import without the binary incompatibility error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100