Skip to main content

Visual One
Visual One

Visual One's few shot learning framework allows you to easily train models for complex computer vision tasks using only a few samples in two lines of code.
Tweet

To see some examples, visit the examples page of our website.

Quickstart

  • Install the package: pip install visualone

  • Submit your email here to receive your public and private keys via email.

  • Train a model by providing some positive samples and some negative samples:

from visualone import vedx

client = vedx.client(public_key, private_key)

model = client.train(positive_samples, negative_samples)
  • Apply the trained model to a new image to do prediction:
client.predict(model['task_id'], image_file)

Description of inputs & outputs

Training

model = client.train(positive_samples, negative_samples)

positive_samples and negative_samples must be either:

  • str: The path to a directory containing image files representing all of the positive/negative samples.
    Or
  • list[str]: The name of the individual files corresponding to the positive/negative samples.

Returns a dict with the following keys:
task_id: A unique task id generated for this task. You need to pass this to client.predict to do prediction.
n_positive_samples: The number of positive samples used for training the model.
n_negative_samples: The number of negative samples used for training the model.
success: 1 if the training was done successfully. 0 if an error occured.
message: A brief message describing the error if an error occurs.

Prediction

client.predict(task_id, image_file)

task_id: The unique task id corresponding to the trained model returned by vedx.train
image_file: The path to the file for which you want to do inference.

Returns a dict with the following keys:
task_id: The task id corresponding to the model.
prediction: A boolean representing the model prediction. True means the model predicted a positive label for the given image. False means the model predicted a negative label for the given image.
confidence: A number between 0 and 100 representing the confidence of the model for this prediction.
latency: The time it took to do the prediction in millisecond.

Report Bugs/Issues & Feature Request

Please, help us improve our product by reporting any bugs or issues while using visualone. Also, feel free to let us know any feature requests.

Metadata

Release files for visualone 0.0.20

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

Source distribution (sdist)

Source distribution for visualone 0.0.20
File Size Uploaded Provenance Actions
visualone-0.0.20.tar.gz 5.0 kB Without provenance Details for visualone-0.0.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for visualone 0.0.20
File Interpreter ABI Platform Actions
visualone-0.0.20-py3-none-any.whl Python 3 none any Details for visualone-0.0.20-py3-none-any.whl

Total release size: 22.8 kB

Release files / visualone-0.0.20.tar.gz

Download URL visualone-0.0.20.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a9890bac880ce2d2f4c0837dcbdba5ce6a94d3a1953723f2f779b4ddf1eaf00a
BLAKE2b-256 checksum
How to use checksums
6fb71ddc5f9b5fcd428b3a58683ce294b9aa4e1e835c51dc967903b752a9fb33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.4.2 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.6

Release files / visualone-0.0.20-py3-none-any.whl

Download URL visualone-0.0.20-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b542f67882a6638e307974890bb4782d6b8952c6c0a194b719ba8a5c696a428
BLAKE2b-256 checksum
How to use checksums
733eba1755f7c78a9ca1ab0295b0aeaeade5bf70bd3394f23236e5cbec1877e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.4.2 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.6

Security for visualone 0.0.20

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