Megvii-BaseDetection / Megvii-BaseDetection/YOLOX

Demo.py error (Expected 88 from C header, got 80 from PyObject)

Open
#706 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.