Skip to content

standalone cython_bbox borrowed from faster-rcnn

License

Notifications You must be signed in to change notification settings

signatrix/cython_bbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cython_bbox

NOTE: The changes in this fork are probably not needed any more since the latest release of cython_bbox upstream.

cython_bbox is widely used in object detection tasks. To my best knowledge, it was first implemented in Faster-RCNN. Since then, almost all object detection projects use the source code directly.

In order to use it in standalone code snippets or small projects, I make it a pypi module. The cython_bbox.pyx is totally borrowed from Faster-RCNN. Thanks RBG!

build and publish

Install cibuildwheel to build wheels for different platforms and architectures:

pip install cibuildwheel

Example to create wheels for linux platforms in amd64 i386 and aarch64 architectures:

export CIBW_ARCHS_LINUX="auto aarch64"
export CIBW_BUILD="cp37-manylinux* cp38-manylinux* cp39-manylinux*"
cibuildwheel

Look for documentation to do it for other platforms as well.

Then install twine:

pip install twine

And publish the wheels:

TWINE_USERNAME=*** TWINE_PASSWORD=*** TWINE_REPOSITORY_URL=https://pypi.cartwatch.de/ twine upload wheelhouse/*

install

pip install cython_bbox

usage

from cython_bbox import bbox_overlaps
overlaps = bbox_overlaps(
        np.ascontiguousarray(dt, dtype=np.float32),
        np.ascontiguousarray(gt, dtype=np.float32)
    )

About

standalone cython_bbox borrowed from faster-rcnn

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Cython 57.1%
  • Python 42.9%