Instructions to use depek/detr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use depek/detr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="depek/detr")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("depek/detr") model = AutoModelForObjectDetection.from_pretrained("depek/detr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from depek/detr: direct link, hf CLI and curl.
- Browser
- Download file 1.87 kB
-
https://huggingface.co/depek/detr/resolve/main/README.md
- Command line
-
hf download hf://depek/detr/README.md
-
curl -L -o README.md https://huggingface.co/depek/detr/resolve/main/README.md
1.87 kB
| license: apache-2.0 | |
| base_model: facebook/detr-resnet-50 | |
| tags: | |
| - generated_from_trainer | |
| model-index: | |
| - name: detr | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # detr | |
| This model is a fine-tuned version of [facebook/detr-resnet-50](https://huggingface.co/facebook/detr-resnet-50) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.8756 | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 5e-05 | |
| - train_batch_size: 16 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 2 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | | |
| |:-------------:|:-----:|:----:|:---------------:| | |
| | 1.7508 | 0.16 | 300 | 1.7472 | | |
| | 1.412 | 0.32 | 600 | 1.3611 | | |
| | 1.2549 | 0.48 | 900 | 1.1682 | | |
| | 1.0701 | 0.64 | 1200 | 1.0696 | | |
| | 0.9812 | 0.8 | 1500 | 1.0103 | | |
| | 1.0346 | 0.96 | 1800 | 0.9782 | | |
| | 1.014 | 1.12 | 2100 | 0.9429 | | |
| | 0.9691 | 1.28 | 2400 | 0.9248 | | |
| | 0.9749 | 1.44 | 2700 | 0.8947 | | |
| | 0.9707 | 1.6 | 3000 | 0.8887 | | |
| | 0.938 | 1.76 | 3300 | 0.8889 | | |
| | 0.9477 | 1.92 | 3600 | 0.8756 | | |
| ### Framework versions | |
| - Transformers 4.39.1 | |
| - Pytorch 2.2.1 | |
| - Datasets 2.18.0 | |
| - Tokenizers 0.15.2 | |