Skip to main content

Wrapper over YoloV5Face

Installation

pip install -U yolo5face

Inference

from yolo5face.get_model import get_model

model = get_model("yolov5n", gpu=-1, target_size=512, min_face=24)

image = cv2.imread(<IMAGE_PATH>)
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)

boxes, key_points = model(image)

  • gpu - GPU number, -1 or cpu for CPU
  • target_size - min size of the target_image
  • min_face - minimum face size in pixels. All faces that have side smaller than min_face will be ignored.

Metadata

Release files for yolo5face 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yolo5face 0.0.4
File Size Uploaded Provenance
yolo5face-0.0.4.tar.gz 17.0 kB Without provenance Details

Release files / yolo5face-0.0.4.tar.gz

Download URL yolo5face-0.0.4.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
44571948267ea3fbf1aa19477fd17a8eb2748bb6b807fe6c71a431bdad5db826
BLAKE2b-256 checksum
How to use checksums
072a01a9e402e45ea888a57385d4a90942f243e5ad27d23255f1a0217863bece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

Security for yolo5face 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page