Compiling pycocotools/_mask.pyx because it changed.
[1/1] Cythonizing pycocotools/_mask.pyx
/home/pcl/anaconda3/envs/paddlepaddle/lib/python3.8/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/pcl/DETR/SDAseg/others/amodalAPI-master/PythonAPI/pycocotools/_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
...
cdef np.ndarray[np.double_t, ndim=1] np_poly
n = len(poly)
Rs = RLEs(n)
for i, p in enumerate(poly):
np_poly = np.array(p, dtype=np.double, order='F')
rleFrPoly( <RLE>&Rs._R[i], <const double> np_poly.data, len(np_poly)/2, h, w )
^
pycocotools/_mask.pyx:265:78: Cannot assign type 'double' to 'siz'
Traceback (most recent call last):
File "setup.py", line 23, in
cythonize(ext_modules)
File "/home/pcl/anaconda3/envs/paddlepaddle/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/home/pcl/anaconda3/envs/paddlepaddle/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pycocotools/_mask.pyx
bug: python setup.py build_ext install
Compiling pycocotools/_mask.pyx because it changed. [1/1] Cythonizing pycocotools/_mask.pyx /home/pcl/anaconda3/envs/paddlepaddle/lib/python3.8/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/pcl/DETR/SDAseg/others/amodalAPI-master/PythonAPI/pycocotools/_mask.pyx tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
... cdef np.ndarray[np.double_t, ndim=1] np_poly n = len(poly) Rs = RLEs(n) for i, p in enumerate(poly): np_poly = np.array(p, dtype=np.double, order='F') rleFrPoly( <RLE>&Rs._R[i], <const double> np_poly.data, len(np_poly)/2, h, w ) ^
pycocotools/_mask.pyx:265:78: Cannot assign type 'double' to 'siz' Traceback (most recent call last): File "setup.py", line 23, in
cythonize(ext_modules)
File "/home/pcl/anaconda3/envs/paddlepaddle/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/home/pcl/anaconda3/envs/paddlepaddle/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pycocotools/_mask.pyx