"The philosophers have only interpreted the world, in various ways. The point, however, is to change it."
haoyizhu / halpecocoapi Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Ubuntu 20.04 / Python 3.7
$ pip3 install halpecocotools
...
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/Development/AlphaPose_jittor/ENV/lib/python3.7/site-packages/numpy/core/include -Icommon -I/Development/AlphaPose_jittor/ENV/include -I/usr/include/python3.7m -c ../common/maskApi.c -o build/temp.linux-x86_64-3.7/../common/maskApi.o
x86_64-linux-gnu-gcc: error: ../common/maskApi.c: No such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
[end of output]
While compiling AlphaPose, I failed to compile halpecocotools
.
After updating setup.py
, it compiles succesfully.
from setuptools import setup, Extension
import numpy as np
# To compile and install locally run "python setup.py build_ext --inplace"
# To install library to Python site-packages run "python setup.py build_ext install"
ext_modules = [
Extension(
'halpecocotools._mask',
sources=['common/maskApi.c'], # update this line
include_dirs = [np.get_include(), 'common'],
extra_compile_args=[],
)
]
setup(
name='halpecocotools',
packages = ['halpecocotools'],
package_dir = {'halpecocotools': 'halpecocotools'},
install_requires=[
'setuptools>=18.0',
'cython>=0.27.3',
'matplotlib>=2.1.0',
],
version='0.0.0',
description="COCO API for Halpe-Fullbody dataset",
url="https://github.com/HaoyiZhu/HalpeCOCOAPI",
ext_modules= ext_modules
)
$ git clone https://github.com/HaoyiZhu/HalpeCOCOAPI.git
$ cd HalpeCOCOAPI/PythonAPI
$ python3 setup.py build develop
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.