Autodistill RemoteCLIP Module
This repository contains the code supporting the RemoteCLIP base model for use with Autodistill.
RemoteCLIP is a vision-language CLIP model trained on remote sensing data. According to the RemoteCLIP README:
RemoteCLIP outperforms previous SoTA by 9.14% mean recall on the RSICD dataset and by 8.92% on RSICD dataset. For zero-shot classification, our RemoteCLIP outperforms the CLIP baseline by up to 6.39% average accuracy on 12 downstream datasets.
Read the full Autodistill documentation.
Read the RemoteCLIP Autodistill documentation.
Installation
To use RemoteCLIP with autodistill, you need to install the following dependency:
pip3 install autodistill-remote-clip
Quickstart
from autodistill_remote_clip import RemoteCLIP
from autodistill.detection import CaptionOntology
# define an ontology to map class names to our RemoteCLIP prompt
# the ontology dictionary has the format {caption: class}
# where caption is the prompt sent to the base model, and class is the label that will
# be saved for that caption in the generated annotations
# then, load the model
base_model = RemoteCLIP(
ontology=CaptionOntology(
{
"airport runway": "runway",
"countryside": "countryside",
}
)
)
predictions = base_model.predict("runway.jpg")
print(predictions)
License
This Autodistill module is licensed under an MIT license. At the time of publishing this project, the RemoteCLIP model and weights had no attached license. Refer to the RemoteCLIP repository for the most up-to-date licensing information regarding the model.
🏆 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-remote-clip 0.1.2
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-remote-clip-0.1.2.tar.gz | 4.2 kB | Without provenance | Details for autodistill-remote-clip-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autodistill_remote_clip-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for autodistill_remote_clip-0.1.2-py3-none-any.whl |
Total release size: 8.8 kB
Release files / autodistill-remote-clip-0.1.2.tar.gz
| Download URL | autodistill-remote-clip-0.1.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6912eeaedf1dc7a36558894c2fff68fcd84c98198933abc13695830386d8ec15
|
|
BLAKE2b-256 checksum How to use checksums |
8086890fbd474c320657936d9d05783fefff653fa54b490f2e546dab23788359
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / autodistill_remote_clip-0.1.2-py3-none-any.whl
| Download URL | autodistill_remote_clip-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d23fddb063a513df0261bb039c60508f3441748b35ebf74e5434efa758adb840
|
|
BLAKE2b-256 checksum How to use checksums |
4ae1f74804c290e02e6bab4ad2a12e8ce084d1614a09baabc467284b2c25dbf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for autodistill-remote-clip 0.1.2
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.