Skip to content

ImportError: can't import name '_C' #34

@humble-king

Description

@humble-king

On running the demo.py code, I am getting an import error

from mega_core import _C
ImportError: cannot import name '_C'

This error was coming from ./mega_core/layers/nms.py and some other files in the same directory

so I commented it and changed it as

#from mega_core import _C
from ._utils import _C

After making the changes the code worked and I was able to get my predictions. Are the two things same? I want to know whether I did the correct thing or not. It would be great if someone could give help in this regard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions