autodistill-detic


Nameautodistill-detic JSON
Version 0.1.6 PyPI version JSON
download
home_pagehttps://github.com/autodistill/autodistill-detic
SummaryDETIC module for use with Autodistill
upload_time2023-12-06 10:24:51
maintainer
docs_urlNone
authorRoboflow
requires_python>=3.7
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <p>
    <a align="center" href="" target="_blank">
      <img
        width="850"
        src="https://media.roboflow.com/open-source/autodistill/autodistill-banner.png"
      >
    </a>
  </p>
</div>

# Autodistill DETIC Module

This repository contains the code supporting the DETIC base model for use with [Autodistill](https://github.com/autodistill/autodistill).

[DETIC](https://github.com/facebookresearch/Detic) is a transformer-based object detection and segmentation model developed by Meta Research.

Read the full [Autodistill documentation](https://autodistill.github.io/autodistill/).

Read the [DETIC Autodistill documentation](https://autodistill.github.io/autodistill/base_models/detic/).

## Installation

To use DETIC with autodistill, you need to install the following dependency:


```bash
pip3 install autodistill-detic
```

## Quickstart

```python
from autodistill_detic import DETIC

# define an ontology to map class names to our DETIC 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 = DETIC(
    ontology=CaptionOntology(
        {
            "person": "person",
        }
    )
)
base_model.label("./context_images", extension=".jpg")
```

## License

The code in this repository is licensed under an [MIT license](LICENSE).

See the Meta Research DETIC repository for more information on the [DETIC license](https://github.com/facebookresearch/Detic).

## 🏆 Contributing

We love your input! Please see the core Autodistill [contributing guide](https://github.com/autodistill/autodistill/blob/main/CONTRIBUTING.md) to get started. Thank you 🙏 to all our contributors!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/autodistill/autodistill-detic",
    "name": "autodistill-detic",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Roboflow",
    "author_email": "support@roboflow.com",
    "download_url": "https://files.pythonhosted.org/packages/cb/4f/e979b37837f2fd8726e81c0258eac313d224b8316b46e570ef08ebe05b6c/autodistill_detic-0.1.6.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <p>\n    <a align=\"center\" href=\"\" target=\"_blank\">\n      <img\n        width=\"850\"\n        src=\"https://media.roboflow.com/open-source/autodistill/autodistill-banner.png\"\n      >\n    </a>\n  </p>\n</div>\n\n# Autodistill DETIC Module\n\nThis repository contains the code supporting the DETIC base model for use with [Autodistill](https://github.com/autodistill/autodistill).\n\n[DETIC](https://github.com/facebookresearch/Detic) is a transformer-based object detection and segmentation model developed by Meta Research.\n\nRead the full [Autodistill documentation](https://autodistill.github.io/autodistill/).\n\nRead the [DETIC Autodistill documentation](https://autodistill.github.io/autodistill/base_models/detic/).\n\n## Installation\n\nTo use DETIC with autodistill, you need to install the following dependency:\n\n\n```bash\npip3 install autodistill-detic\n```\n\n## Quickstart\n\n```python\nfrom autodistill_detic import DETIC\n\n# define an ontology to map class names to our DETIC prompt\n# the ontology dictionary has the format {caption: class}\n# where caption is the prompt sent to the base model, and class is the label that will\n# be saved for that caption in the generated annotations\n# then, load the model\nbase_model = DETIC(\n    ontology=CaptionOntology(\n        {\n            \"person\": \"person\",\n        }\n    )\n)\nbase_model.label(\"./context_images\", extension=\".jpg\")\n```\n\n## License\n\nThe code in this repository is licensed under an [MIT license](LICENSE).\n\nSee the Meta Research DETIC repository for more information on the [DETIC license](https://github.com/facebookresearch/Detic).\n\n## \ud83c\udfc6 Contributing\n\nWe love your input! Please see the core Autodistill [contributing guide](https://github.com/autodistill/autodistill/blob/main/CONTRIBUTING.md) to get started. Thank you \ud83d\ude4f to all our contributors!\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "DETIC module for use with Autodistill",
    "version": "0.1.6",
    "project_urls": {
        "Homepage": "https://github.com/autodistill/autodistill-detic"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d1b56ccf6d8aae07c874081478a34e44e27f3e0a4a875468e0e05daa9bab2ba6",
                "md5": "3df53f6556def00b38704d461d08f892",
                "sha256": "e9ce6a6a8beb479ac92ae08e3b65a0b5ab41ed1244acd9ffe5f66bb28bc32513"
            },
            "downloads": -1,
            "filename": "autodistill_detic-0.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3df53f6556def00b38704d461d08f892",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5275,
            "upload_time": "2023-12-06T10:24:49",
            "upload_time_iso_8601": "2023-12-06T10:24:49.425201Z",
            "url": "https://files.pythonhosted.org/packages/d1/b5/6ccf6d8aae07c874081478a34e44e27f3e0a4a875468e0e05daa9bab2ba6/autodistill_detic-0.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb4fe979b37837f2fd8726e81c0258eac313d224b8316b46e570ef08ebe05b6c",
                "md5": "2162df331a5e19f360efeea907289c8f",
                "sha256": "323f70813e71d531fad68139a3c2ac364a8dcd0e8c14052e31e0ecb28664e5e3"
            },
            "downloads": -1,
            "filename": "autodistill_detic-0.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "2162df331a5e19f360efeea907289c8f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7457,
            "upload_time": "2023-12-06T10:24:51",
            "upload_time_iso_8601": "2023-12-06T10:24:51.654981Z",
            "url": "https://files.pythonhosted.org/packages/cb/4f/e979b37837f2fd8726e81c0258eac313d224b8316b46e570ef08ebe05b6c/autodistill_detic-0.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-06 10:24:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "autodistill",
    "github_project": "autodistill-detic",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "autodistill-detic"
}
        
Elapsed time: 0.32881s