Instructions to use Lollover/trainer_output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lollover/trainer_output with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="Lollover/trainer_output")# Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("Lollover/trainer_output") model = AutoModelForObjectDetection.from_pretrained("Lollover/trainer_output") - Notebooks
- Google Colab
- Kaggle
File size: 1,740 Bytes
b748bab | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | {
"activation_dropout": 0.0,
"activation_function": "relu",
"architectures": [
"ConditionalDetrForObjectDetection"
],
"attention_dropout": 0.0,
"auxiliary_loss": false,
"backbone_config": {
"backbone": "resnet50",
"dtype": "float32",
"features_only": true,
"freeze_batch_norm_2d": false,
"model_type": "timm_backbone",
"num_channels": 3,
"out_features": [
"layer1",
"layer2",
"layer3",
"layer4"
],
"out_indices": [
1,
2,
3,
4
],
"output_stride": null,
"stage_names": [
"act1",
"layer1",
"layer2",
"layer3",
"layer4"
],
"use_pretrained_backbone": false
},
"bbox_cost": 5,
"bbox_loss_coefficient": 5,
"class_cost": 2,
"cls_loss_coefficient": 2,
"d_model": 256,
"decoder_attention_heads": 8,
"decoder_ffn_dim": 2048,
"decoder_layerdrop": 0.0,
"decoder_layers": 6,
"dice_loss_coefficient": 1,
"dilation": false,
"dropout": 0.1,
"dtype": "float32",
"encoder_attention_heads": 8,
"encoder_ffn_dim": 2048,
"encoder_layerdrop": 0.0,
"encoder_layers": 6,
"focal_alpha": 0.25,
"giou_cost": 2,
"giou_loss_coefficient": 2,
"id2label": {
"0": "accessories",
"1": "bags",
"2": "clothing",
"3": "shoes"
},
"init_std": 0.02,
"init_xavier_std": 1.0,
"is_encoder_decoder": true,
"label2id": {
"accessories": 0,
"bags": 1,
"clothing": 2,
"shoes": 3
},
"mask_loss_coefficient": 1,
"max_position_embeddings": 1024,
"model_type": "conditional_detr",
"num_channels": 3,
"num_queries": 300,
"position_embedding_type": "sine",
"scale_embedding": false,
"transformers_version": "5.5.4",
"use_cache": false
}
|