DetectionTeamUCAS / FPN_Tensorflow

This is a tensorflow re-implementation of Feature Pyramid Networks for Object Detection.
https://github.com/DetectionTeamUCAS/FPN_Tensorflow
MIT License
347 stars 132 forks source link

关于按教程make文件cython_utils #112

Closed xiaoaxiaoxiaocao closed 4 years ago

xiaoaxiaoxiaocao commented 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帮忙

hlf1996 commented 4 years ago

你把两个.c文件改成点.cpp文件再试一下

yangxue0827 commented 4 years ago

实在解决不了,你可以用tf或者np写一个iou的计算函数,几行代码不难 @xiaoaxiaoxiaocao

xiaoaxiaoxiaocao commented 4 years ago

@hlf1996 大佬666 解决了