ModuleNotFoundError: No module named 'official.vision.detection.tools'

我按照这个网站提供的信息一步一步进行依然报错
Models/official/vision/detection at master · MegEngine/Models · GitHub

错误内容:

err: Failed to load cuda API library
err: failed to load cuda func: cuCtxGetCurrent
Traceback (most recent call last):
File “tools/test.py”, line 18, in
from official.vision.detection.tools.data_mapper import data_mapper
ModuleNotFoundError: No module named ‘official.vision.detection.tools’

它这个detection包 不是外部的,而是这个工程的包被作为了一个detection模块。这个tools就在 你那个工程tools文件夹里面。我是自己改的 import 解决的,我也是初学,不知道原理哦