Skip to main content

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!

Release files for autodistill-detr 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autodistill-detr 0.1.1
File Size Uploaded
autodistill-detr-0.1.1.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autodistill-detr 0.1.1
File Interpreter ABI Platform
autodistill_detr-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / autodistill-detr-0.1.1.tar.gz

Download URL autodistill-detr-0.1.1.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6775c1ac4fd2b1fbcd0d361afa207a926cfdb34cd1e936b5da151dc47c4c526a
BLAKE2b-256 checksum
How to use checksums
37dae7befc7f6791c5a889b5ec9a88e76785fa476ea2c933cf044e611a264fe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / autodistill_detr-0.1.1-py3-none-any.whl

Download URL autodistill_detr-0.1.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6c2af5f61e6e7889115b5f7b900b08aeea4c6d019eb5714049f0e54a7916223
BLAKE2b-256 checksum
How to use checksums
b068d3362615e0daf737b624897f40a848d462fe18badd053f539cffb91a3a3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page