Autodistill ViT Module
This repository contains the code supporting the ViT target model for use with Autodistill.
ViT is a classification model pre-trained on ImageNet-21k, developed by Google. You can train ViT classification models using Autodistill.
Read the full Autodistill documentation.
Read the ViT Autodistill documentation.
Installation
To use the ViT target model, you will need to install the following dependency:
pip3 install autodistill-vit
Quickstart
from autodistill_vit import ViT
target_model = ViT()
# train a model from a classification folder structure
target_model.train("./context_images_labeled/", epochs=200)
# run inference on the new model
pred = target_model.predict("./context_images_labeled/train/images/dog-7.jpg", conf=0.01)
License
The code in this repository is licensed under an Apache 2.0 license.
🏆 Contributing
We love your input! Please see the core Autodistill contributing guide to get started. Thank you 🙏 to all our contributors!
Metadata
Release files for autodistill-vit 0.1.0
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 |
|---|---|---|---|---|
| autodistill-vit-0.1.0.tar.gz | 7.7 kB | Without provenance | Details for autodistill-vit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autodistill_vit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for autodistill_vit-0.1.0-py3-none-any.whl |
Total release size: 15.7 kB
Release files / autodistill-vit-0.1.0.tar.gz
| Download URL | autodistill-vit-0.1.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5647d625a1b9f897328a1edf77a7435630ba5bfc1b791a17947331560241f958
|
|
BLAKE2b-256 checksum How to use checksums |
12ba706462907af88808df357a3513c674335af226d1276ec26bd56369149c24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Release files / autodistill_vit-0.1.0-py3-none-any.whl
| Download URL | autodistill_vit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fff1adb79031b5236aa7c4895223f0434e1679db9efcb0642688253f3da3ad68
|
|
BLAKE2b-256 checksum How to use checksums |
0275bd2affd25601bdcce764bdfbd104feb89437c18d8f9dd924a464aa4bb633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Security for autodistill-vit 0.1.0
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.