https://github.com/autodistill/autodistill-dinov2
DINOv2 module for use with Autodistill.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.2%) to scientific vocabulary
Keywords
Repository
DINOv2 module for use with Autodistill.
Basic Info
- Host: GitHub
- Owner: autodistill
- License: other
- Language: Python
- Default Branch: main
- Homepage: https://docs.autodistill.com
- Size: 17.6 KB
Statistics
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
Autodistill DINOv2 Module
This repository contains the code supporting the DINOv2 base model for use with Autodistill.
DINOv2, developed by Meta Research, is a self-supervised training method for computer vision models. This library uses DINOv2 image embeddings with SVM to build a classification model.
Read the full Autodistill documentation.
Read the DINOv2 Autodistill documentation.
Installation
To use DINOv2 with autodistill, you need to install the following dependency:
bash
pip3 install autodistill-dinov2
Quickstart
```python from autodistill_dinov2 import DINOv2
target_model = DINOv2(None)
train a model
specify the directory where your annotations (in multiclass classification folder format)
DINOv2 embeddings are saved in a file called "embeddings.json" the folder in which you are working
with the structure {filename: embedding}
targetmodel.train("./contextimages_labeled")
get class list
print(target_model.ontology.classes())
run inference on the new model
pred = targetmodel.predict("./contextimages_labeled/train/images/dog-7.jpg")
print(pred) ```
License
The code in this repository is licensed under a CC Attribution-NonCommercial 4.0 International license.
🏆 Contributing
We love your input! Please see the core Autodistill contributing guide to get started. Thank you 🙏 to all our contributors!
Owner
- Name: Autodistill
- Login: autodistill
- Kind: organization
- Email: autodistill@roboflow.com
- Website: https://autodistill.com
- Repositories: 1
- Profile: https://github.com/autodistill
Use bigger slower models to train smaller faster ones
GitHub Events
Total
- Watch event: 4
Last Year
- Watch event: 4
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 3
- Total pull requests: 1
- Average time to close issues: 2 months
- Average time to close pull requests: 24 days
- Total issue authors: 3
- Total pull request authors: 1
- Average comments per issue: 1.33
- Average comments per pull request: 1.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- kobic8 (1)
- ccmCCMfk (1)
- rainbowpuffpuff (1)
Pull Request Authors
- computerscienceiscool (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 41 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
- Total maintainers: 1
pypi.org: autodistill-dinov2
DINOv2 module for use with Autodistill
- Homepage: https://github.com/autodistill/autodistill-dinov2
- Documentation: https://autodistill-dinov2.readthedocs.io/
- License: MIT License
-
Latest release: 0.1.1
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- pypa/gh-action-pypi-publish release/v1 composite
- actions/checkout v3 composite
- actions/setup-python v2 composite
- actions/checkout v3 composite
- actions/setup-python v2 composite
- actions/first-interaction v1.1.1 composite
- Pillow *
- autodistill *
- numpy *
- scikit-learn *
- supervision *
- torch *
- torchvision *
- tqdm *