Tool for validating your computer vision data and model results.
Project description
CV validator
Library to validate computer vision data and models.
Installation
pip install cv-validator
Usage
Example on colab: Link
from cv_validator.checks import *
from cv_validator.core.data import DataSource
from cv_validator.core.suite import BaseSuite
# Create class with data information
train = DataSource(train_image_paths, train_labels, train_predictions, transform=None)
test = DataSource(test_image_paths, test_labels, test_predictions, transform=transform)
# Create suite with different checks
suite = BaseSuite(
checks=[
ImageSize(),
ColorShift(),
BrightnessCheck(need_transformed_img=True),
ClassifierLabelDistribution(),
MetricCheck(),
MetricDiff(),
MetricBySize(),
MetricByRatio(),
HashDuplicates(mode="exact", datasource_type="train"),
]
)
# Run checks
suite.run(task="multiclass", train=train, test=test, num_workers=4)
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
cv-validator-0.1.4.tar.gz
(17.6 kB
view hashes)
Built Distribution
Close
Hashes for cv_validator-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4bf2f79d9f16c8fc5eb05d82ebf9df8360ad11f5e62e36092e0a262b6c759c4 |
|
MD5 | 159edfd82400854dd1b5c300d269a07a |
|
BLAKE2b-256 | f86535c0328fe00244b595cbd9dfc0c7d5ab988287c0c4f87592ba32974d3a02 |