Coder Social home page Coder Social logo

halpecocoapi's Introduction

☺️ I'm Haoyi Zhu, a 1st-year Ph.D. student majoring in AI at Shanghai AI Lab & USTC.

😍 Research Interests: Robotic Manipulation, Embodied AI, and 3D Vision.

"The philosophers have only interpreted the world, in various ways. The point, however, is to change it."





halpecocoapi's People

Contributors

haoyizhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

halpecocoapi's Issues

x86_64-linux-gnu-gcc: error: ../common/maskApi.c: No such file or directory (solution)

Environment

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.

Fix

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.