Instructions to use SaysBlade/final with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SaysBlade/final with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="SaysBlade/final")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("SaysBlade/final") model = AutoModelForObjectDetection.from_pretrained("SaysBlade/final", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from SaysBlade/final: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/SaysBlade/final/resolve/main/config.json
- Command line
-
hf download hf://SaysBlade/final/config.json
-
curl -L -o config.json https://huggingface.co/SaysBlade/final/resolve/main/config.json
1.05 kB
| { | |
| "_name_or_path": "hustvl/yolos-tiny", | |
| "architectures": [ | |
| "YolosForObjectDetection" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "auxiliary_loss": false, | |
| "bbox_cost": 5, | |
| "bbox_loss_coefficient": 5, | |
| "class_cost": 1, | |
| "eos_coefficient": 0.1, | |
| "giou_cost": 2, | |
| "giou_loss_coefficient": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 192, | |
| "id2label": { | |
| "0": "road-damage-QoMZ", | |
| "1": "Alligator", | |
| "2": "Longitudinal", | |
| "3": "Potholes", | |
| "4": "Transverse" | |
| }, | |
| "image_size": [ | |
| 800, | |
| 1333 | |
| ], | |
| "initializer_range": 0.02, | |
| "intermediate_size": 768, | |
| "label2id": { | |
| "road-damage-QoMZ": 0, | |
| "Alligator": 1, | |
| "Longitudinal": 2, | |
| "Potholes": 3, | |
| "Transverse": 4 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "yolos", | |
| "num_attention_heads": 3, | |
| "num_channels": 3, | |
| "num_detection_tokens": 100, | |
| "num_hidden_layers": 12, | |
| "patch_size": 16, | |
| "qkv_bias": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.23.1", | |
| "use_mid_position_embeddings": false | |
| } | |