Skip to main content

RetinaFace Post-Processing is a module contains code for post-processing of RetinaFace inference results

Project description

RetinaFace Post-Processing

Module for post-processing of RetinaFaceNet inference results.

Model outputs are floating points tensors:

  1. name: face_rpn_cls_prob, shape: 1, 16800, 2, format: B, A*C, 2, represents detection scores for 2 classes: background and face.

  2. name: face_rpn_bbox_pred, shape: 1, 16800, 4, format: B, A*C, 4, represents detection box deltas.

  3. name: face_rpn_landmark_pred, shape: 1, 16800, 10, format: B, A*C, 10, represents facial landmarks.

For each output format:

  • B - batch size
  • A - number of anchors
  • C - sum of products of dimensions for each stride, C = H32 * W32 + H16 * W16 + H8 * W8
  • H - feature height with the corresponding stride
  • W - feature width with the corresponding stride

Detection box deltas have format [dx, dy, dh, dw], where:

  • (dx, dy) - regression for center of bounding box
  • (dh, dw) - regression by height and width of bounding box

Facial landmarks have format [x1, y1, x2, y2, x3, y3, x4, y4, x5, y5], where:

  • (x1, y1) - coordinates of left eye
  • (x2, y2) - coordinates of rights eye
  • (x3, y3) - coordinates of nose
  • (x4, y4) - coordinates of left mouth corner
  • (x5, y5) - coordinates of right mouth corner

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retinaface_post_processing-0.0.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file retinaface_post_processing-0.0.4.tar.gz.

File metadata

  • Download URL: retinaface_post_processing-0.0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for retinaface_post_processing-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3b569553ba060e206a411998fdb28f5d80b55ce19821e547d5766d6e83d20b80
MD5 39316f7ec9e488ebddbdf76ccc4973aa
BLAKE2b-256 9cdcf6280c2e453a4bdb82892865fd89921a368292698ec8c51870fe0f8d2b46

See more details on using hashes here.

File details

Details for the file retinaface_post_processing-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: retinaface_post_processing-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for retinaface_post_processing-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 290fa2cac2b8b91d3eed5026879354c21caab2c08ee3f1ccea52bee5a21c4fef
MD5 d0a55d9470f1724d878eab5dc677e2be
BLAKE2b-256 88a824d7bf09dab5fba3f6d2e676bdb71713e809162f958d05273bc1bb6496eb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page