Skip to main content

fastpredict

Has the following benefits over using fastai directly:

  • cleaner API for batch prediction
  • takes care of using CPU or GPU if you specify in the constructor

How to use:

from fastpredict import FastPredictBool
f = FastPredictBool.from_path('/path/to/learner.pkl')
score = f.predict_path('/path/to/image.jpg')
scores = f.batch_predict_paths(['/path/to/image1.jpg', '/path/to/image2.jpg'])

To prune a model:

from fastpredict import FastPredict
from fastai.vision.all import load_learner
learn = load_learner('/path/to/current/learner.pkl')
new_learn = FastPredict.clean_learner(learn)
new_learn.export('/path/to/new/learner.pkl')

Metadata

Release files for fastpredict 0.0.6

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

Source distribution (sdist)

Source distribution for fastpredict 0.0.6
File Size Uploaded Provenance Actions
fastpredict-0.0.6.tar.gz 3.5 kB Without provenance Details for fastpredict-0.0.6.tar.gz

Built distribution (wheel)

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

Total release size: 7.9 kB

Release files / fastpredict-0.0.6.tar.gz

Download URL fastpredict-0.0.6.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
91a083204579b7134734a8b293fb2a6087df38b940643377cbd4bf1966826f30
BLAKE2b-256 checksum
How to use checksums
69b8857484d4d436b3a4eb06e495367c16753b3fbffda4854cc40e9c959f3714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

Release files / fastpredict-0.0.6-py3-none-any.whl

Download URL fastpredict-0.0.6-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b23d7fca93f427de3d4f99823371a1aaade1cbbaf171c2a90cf768b5cd1f1a6a
BLAKE2b-256 checksum
How to use checksums
f36d5414c0a2a3d67a8f52d3fe60c4e1cc863fa011ae68a703e6106ddbb3bd4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

Security for fastpredict 0.0.6

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