Instructions to use Dalek12CD/LPD_deformable_detr_V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dalek12CD/LPD_deformable_detr_V2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="Dalek12CD/LPD_deformable_detr_V2")# Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("Dalek12CD/LPD_deformable_detr_V2") model = AutoModelForObjectDetection.from_pretrained("Dalek12CD/LPD_deformable_detr_V2") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "SenseTime/deformable-detr", | |
| "activation_dropout": 0.0, | |
| "activation_function": "relu", | |
| "architectures": [ | |
| "DeformableDetrForObjectDetection" | |
| ], | |
| "attention_dropout": 0.0, | |
| "auxiliary_loss": false, | |
| "backbone": "resnet50", | |
| "backbone_config": null, | |
| "bbox_cost": 5, | |
| "bbox_loss_coefficient": 5, | |
| "class_cost": 1, | |
| "d_model": 256, | |
| "decoder_attention_heads": 8, | |
| "decoder_ffn_dim": 1024, | |
| "decoder_layerdrop": 0.0, | |
| "decoder_layers": 6, | |
| "decoder_n_points": 4, | |
| "dice_loss_coefficient": 1, | |
| "dilation": false, | |
| "disable_custom_kernels": false, | |
| "dropout": 0.1, | |
| "encoder_attention_heads": 8, | |
| "encoder_ffn_dim": 1024, | |
| "encoder_layerdrop": 0.0, | |
| "encoder_layers": 6, | |
| "encoder_n_points": 4, | |
| "eos_coefficient": 0.1, | |
| "focal_alpha": 0.25, | |
| "giou_cost": 2, | |
| "giou_loss_coefficient": 2, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1", | |
| "2": "LABEL_2" | |
| }, | |
| "init_std": 0.02, | |
| "init_xavier_std": 1.0, | |
| "is_encoder_decoder": true, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1, | |
| "LABEL_2": 2 | |
| }, | |
| "mask_loss_coefficient": 1, | |
| "max_position_embeddings": 1024, | |
| "model_type": "deformable_detr", | |
| "num_channels": 3, | |
| "num_feature_levels": 4, | |
| "num_queries": 300, | |
| "position_embedding_type": "sine", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.35.2", | |
| "two_stage": false, | |
| "two_stage_num_proposals": 300, | |
| "use_pretrained_backbone": true, | |
| "use_timm_backbone": true, | |
| "with_box_refine": false | |
| } | |