xingyizhou / CenterNet

Object detection, 3D detection, and pose estimation using center point detection:
MIT License
7.26k stars 1.92k forks source link

请问可以在ubuntu18.04运行吗?我其他的环境都和说明中一致了,但是最后运行就是报错,怀疑是系统的问题,我用的18.04的。 #844

Open jiaji-fang opened 3 years ago

xingyizhou commented 3 years ago

I am fairly sure the code can run on ubuntu 18.04. Can you be more specific about the error message?

Yinhance commented 3 years ago

@xingyizhou (CenterNet) yh@deepserver3:~/anaconda3/envs/CenterNet/$COCOAPI/PythonAPI$ make python setup.py build_ext --inplace running build_ext building 'pycocotools._mask' extension creating build creating build/common creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/pycocotools gcc -pthread -B /home/yh/anaconda3/envs/CenterNet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yh/anaconda3/envs/CenterNet/lib/python3.6/site-packages/numpy/core/include -I../common -I/home/yh/anaconda3/envs/CenterNet/include/python3.6m -c ../common/maskApi.c -o build/temp.linux-x86_64-3.6/../common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99 ../common/maskApi.c: In function ‘rleToBbox’: ../common/maskApi.c:141:31: warning: ‘xp’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(j%2==0) xp=x; else if(xp<x) { ys=0; ye=h-1; } ^ gcc -pthread -B /home/yh/anaconda3/envs/CenterNet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yh/anaconda3/envs/CenterNet/lib/python3.6/site-packages/numpy/core/include -I../common -I/home/yh/anaconda3/envs/CenterNet/include/python3.6m -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.6/pycocotools/_mask.o -Wno-cpp -Wno-unused-function -std=c99 gcc: error: pycocotools/_mask.c: No such file or directory error: command 'gcc' failed with exit status 1 Makefile:3: recipe for target 'all' failed make: *** [all] Error 1

The above error appeared when I run 'make' after cd $COCOAPI/PythonAPI, and my server is Ubuntu 18.04.Could u help me and give any advice? Thx a lot!

jiangwei221 commented 3 years ago

probably related: https://github.com/cocodataset/cocoapi/issues/141

zchkylin commented 6 months ago

use "pip install cython", you can solve it