Instructions to use JeanCGuerrero/Practica2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JeanCGuerrero/Practica2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="JeanCGuerrero/Practica2")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("JeanCGuerrero/Practica2") model = AutoModelForObjectDetection.from_pretrained("JeanCGuerrero/Practica2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from JeanCGuerrero/Practica2: direct link, hf CLI and curl.
- Browser
- Download file 930 Bytes
-
https://huggingface.co/JeanCGuerrero/Practica2/resolve/main/config.json
- Command line
-
hf download hf://JeanCGuerrero/Practica2/config.json
-
curl -L -o config.json https://huggingface.co/JeanCGuerrero/Practica2/resolve/main/config.json
930 Bytes
| { | |
| "_name_or_path": "magarcd/practica_2", | |
| "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": "banana", | |
| "1": "orange", | |
| "2": "apple" | |
| }, | |
| "image_size": [ | |
| 800, | |
| 1333 | |
| ], | |
| "initializer_range": 0.02, | |
| "intermediate_size": 768, | |
| "label2id": { | |
| "apple": 2, | |
| "banana": 0, | |
| "orange": 1 | |
| }, | |
| "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.48.3", | |
| "use_mid_position_embeddings": false | |
| } | |