Closed xiaoaxiaoxiaocao closed 4 years ago
首先,为了编译成功,我的环境跟作者的是一样的,然后进入cython_utils文件夹进行了下述指令:
python setup.py build_ext --inplace 编译完成后,生成两个.os文件:cython_bbox.cpython-35m-x86_64-linux-gnu.os和cython_nms.cpython-35m-x86_64-linux-gnu.os,但是,from libs.box_utils.cython_utils.cython_bbox import bbox_overlaps 仍然没有找到cython_bbox ,同时还报错: ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216
求大佬们帮忙,求up帮忙
你把两个.c文件改成点.cpp文件再试一下
实在解决不了,你可以用tf或者np写一个iou的计算函数,几行代码不难 @xiaoaxiaoxiaocao
@hlf1996 大佬666 解决了
python setup.py build_ext --inplace 编译完成后,生成两个.os文件:cython_bbox.cpython-35m-x86_64-linux-gnu.os和cython_nms.cpython-35m-x86_64-linux-gnu.os,但是,from libs.box_utils.cython_utils.cython_bbox import bbox_overlaps 仍然没有找到cython_bbox ,同时还报错: ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216
求大佬们帮忙,求up帮忙