Skip to main content

DETR module for use with Autodistill

Project description

Autodistill DETR Module

This repository contains the code supporting the DETR base model for use with Autodistill.

DETR is a transformer-based computer vision model you can use for object detection. Autodistill supports training a model using the Meta Research Resnet 50 checkpoint.

Read the full Autodistill documentation.

Read the DETR Autodistill documentation.

Installation

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

pip3 install autodistill-detr

Quickstart

from autodistill_detr import DETR

# load the model
target_model = DETR()

# train for 10 epochs
target_model.train("./roads", epochs=10)

# run inference on an image
target_model.predict("./roads/valid/-3-_jpg.rf.bee113a09b22282980c289842aedfc4a.jpg")

License

This project is licensed under an Apache 2.0 license. See the Hugging Face model card for the DETR Resnet 50 model for more information on the model license.

🏆 Contributing

We love your input! Please see the core Autodistill contributing guide to get started. Thank you 🙏 to all our contributors!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autodistill-detr-0.1.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autodistill_detr-0.1.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file autodistill-detr-0.1.1.tar.gz.

File metadata

  • Download URL: autodistill-detr-0.1.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for autodistill-detr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6775c1ac4fd2b1fbcd0d361afa207a926cfdb34cd1e936b5da151dc47c4c526a
MD5 45d1031885db0c5c9df253e36cb2bbe6
BLAKE2b-256 37dae7befc7f6791c5a889b5ec9a88e76785fa476ea2c933cf044e611a264fe5

See more details on using hashes here.

File details

Details for the file autodistill_detr-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for autodistill_detr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6c2af5f61e6e7889115b5f7b900b08aeea4c6d019eb5714049f0e54a7916223
MD5 53b7e813585a2c9feb29f4b4f2d51329
BLAKE2b-256 b068d3362615e0daf737b624897f40a848d462fe18badd053f539cffb91a3a3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page