ModelMeter
Unrestricted class structure compatibility and focused throughput assessment for your model's performance evaluation
Requirements
Python 3.8+
Installation
pip install model-meter
---> 100%
Example
Create it
- Create a file
main.pywith:
from model_meter import ModelMeter
from ultralytics import YOLO
# Load the model
model = YOLO()
# Create the meter
meter = ModelMeter(model)
# Run the meter
throughput, avg_time_per_call = meter.measure(
params=('./contents/dog.jpg',),
method_name="__call__",
)
print(f'Throughput: {throughput} images/second')
print(f'Avg time per call: {avg_time_per_call} seconds')
Run it
Run the script with:
$ python main.py
...
Throughput: 14.794271662158552 images/second
Avg time per call: 0.0675937297107937 seconds
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for model-meter 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| model_meter-0.2.1.tar.gz | 3.5 kB | Without provenance | Details for model_meter-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| model_meter-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for model_meter-0.2.1-py3-none-any.whl |
Total release size: 6.8 kB
Release files / model_meter-0.2.1.tar.gz
| Download URL | model_meter-0.2.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44056142d91f6e2c048356b30e91ee8e9fbf3a5b5ec60e4fcade206540f24408
|
|
BLAKE2b-256 checksum How to use checksums |
6b6003ea9a2c1955b4345d05a59bbf8911f1f2f62a7fa9c7ac806fa1471c9da5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.3
|
Release files / model_meter-0.2.1-py3-none-any.whl
| Download URL | model_meter-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dc6121b39ac4d9518341e82e6d3e8e57ad0b5541588037c47049079403ec867
|
|
BLAKE2b-256 checksum How to use checksums |
5d72953e5b2679fe1a4a9a905a768b7f0aad348f7c5d6550457da87553522539
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.3
|
Security for model-meter 0.2.1
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.