Instructions to use Reinold/safeguard-vision-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use Reinold/safeguard-vision-models with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli # A single .litertlm file in the repo is picked automatically; otherwise the CLI asks which one to run # (or pass its name right after the repo id). litert-lm run \ --from-huggingface-repo=Reinold/safeguard-vision-models \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
Publish SafeGuard Vision on-device models
Browse files- .gitattributes +1 -0
- README.md +23 -0
- form-extractor/v3/model.litertlm +3 -0
- form-extractor/v3/schema.json +175 -0
- whisper/small-decoder.int8-f16emb.onnx +3 -0
- whisper/small-encoder.int8.onnx +3 -0
- whisper/small-tokens.txt +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
form-extractor/v3/model.litertlm filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: mixed
|
| 4 |
+
base_model: google/functiongemma-270m-it
|
| 5 |
+
library_name: litert-lm
|
| 6 |
+
tags: [whisper, sherpa-onnx, functiongemma, litert-lm, on-device, spanish]
|
| 7 |
+
---
|
| 8 |
+
# SafeGuard Vision — modelos on-device
|
| 9 |
+
|
| 10 |
+
Modelos que la app SafeGuard Vision descarga la primera vez que se usa la herramienta
|
| 11 |
+
«Parte diario por voz». Todo se ejecuta en el móvil, sin conexión; este repositorio solo
|
| 12 |
+
sirve los ficheros. La app comprueba el sha256 de cada fichero contra su manifiesto.
|
| 13 |
+
|
| 14 |
+
| Carpeta | Modelo | Licencia |
|
| 15 |
+
|---|---|---|
|
| 16 |
+
| `whisper/` | Whisper small multilingüe (OpenAI), exportado a ONNX int8 por sherpa-onnx; el decoder guarda el embedding de tokens en float16 | MIT (Whisper) · Apache-2.0 (sherpa-onnx) |
|
| 17 |
+
| `form-extractor/v3/` | FunctionGemma 270M afinado para rellenar el parte diario de obra en castellano, int8, LiteRT-LM, con el esquema de la función con el que se entrenó | Gemma Terms of Use |
|
| 18 |
+
|
| 19 |
+
## Aviso de Gemma
|
| 20 |
+
|
| 21 |
+
`form-extractor/` es un modelo derivado de Gemma. Gemma se proporciona bajo y está sujeto a los
|
| 22 |
+
Gemma Terms of Use que se encuentran en https://ai.google.dev/gemma/terms, incluida la política
|
| 23 |
+
de uso prohibido https://ai.google.dev/gemma/prohibited_use_policy.
|
form-extractor/v3/model.litertlm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ab7201504330948e3eca2843bc31c6e08c927dc08a01b175b5479158927135e
|
| 3 |
+
size 284281216
|
form-extractor/v3/schema.json
ADDED
|
@@ -0,0 +1,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"function": {
|
| 3 |
+
"description": "Rellena la planificación diaria de obra con lo que dicta el encargado. Solo los campos que se mencionan.",
|
| 4 |
+
"name": "rellenar_planificacion_diaria",
|
| 5 |
+
"parameters": {
|
| 6 |
+
"properties": {
|
| 7 |
+
"empresa": {
|
| 8 |
+
"description": "Empresa o subcontrata que hace los trabajos",
|
| 9 |
+
"enum": [],
|
| 10 |
+
"type": "string"
|
| 11 |
+
},
|
| 12 |
+
"epi_requerido": {
|
| 13 |
+
"description": "EPI obligatorios",
|
| 14 |
+
"items": {
|
| 15 |
+
"enum": [
|
| 16 |
+
"casco",
|
| 17 |
+
"chaleco",
|
| 18 |
+
"mascarilla",
|
| 19 |
+
"arnes",
|
| 20 |
+
"guantes",
|
| 21 |
+
"gafas",
|
| 22 |
+
"botas",
|
| 23 |
+
"protector_auditivo"
|
| 24 |
+
],
|
| 25 |
+
"type": "string"
|
| 26 |
+
},
|
| 27 |
+
"type": "array"
|
| 28 |
+
},
|
| 29 |
+
"fecha": {
|
| 30 |
+
"description": "Cuándo se hacen los trabajos",
|
| 31 |
+
"enum": [
|
| 32 |
+
"hoy",
|
| 33 |
+
"mañana",
|
| 34 |
+
"pasado mañana",
|
| 35 |
+
"lunes",
|
| 36 |
+
"martes",
|
| 37 |
+
"miércoles",
|
| 38 |
+
"jueves",
|
| 39 |
+
"viernes",
|
| 40 |
+
"sábado",
|
| 41 |
+
"domingo",
|
| 42 |
+
"esta semana",
|
| 43 |
+
"la semana que viene"
|
| 44 |
+
],
|
| 45 |
+
"type": "string"
|
| 46 |
+
},
|
| 47 |
+
"maquinaria": {
|
| 48 |
+
"description": "Maquinaria y medios auxiliares",
|
| 49 |
+
"items": {
|
| 50 |
+
"enum": [
|
| 51 |
+
"grúa torre",
|
| 52 |
+
"autogrúa",
|
| 53 |
+
"bomba de hormigón",
|
| 54 |
+
"camión hormigonera",
|
| 55 |
+
"hormigonera",
|
| 56 |
+
"vibrador",
|
| 57 |
+
"retroexcavadora",
|
| 58 |
+
"miniexcavadora",
|
| 59 |
+
"pala cargadora",
|
| 60 |
+
"dúmper",
|
| 61 |
+
"camión",
|
| 62 |
+
"compactadora",
|
| 63 |
+
"rodillo",
|
| 64 |
+
"extendedora",
|
| 65 |
+
"plataforma elevadora",
|
| 66 |
+
"andamio",
|
| 67 |
+
"montacargas",
|
| 68 |
+
"manipulador telescópico",
|
| 69 |
+
"martillo neumático",
|
| 70 |
+
"compresor",
|
| 71 |
+
"radial",
|
| 72 |
+
"equipo de soldadura",
|
| 73 |
+
"soplete",
|
| 74 |
+
"taladro",
|
| 75 |
+
"escalera de mano",
|
| 76 |
+
"hidrolimpiadora"
|
| 77 |
+
],
|
| 78 |
+
"type": "string"
|
| 79 |
+
},
|
| 80 |
+
"type": "array"
|
| 81 |
+
},
|
| 82 |
+
"num_trabajadores": {
|
| 83 |
+
"description": "Número de trabajadores",
|
| 84 |
+
"type": "integer"
|
| 85 |
+
},
|
| 86 |
+
"observaciones": {
|
| 87 |
+
"description": "Otras indicaciones o medidas a tomar",
|
| 88 |
+
"type": "string"
|
| 89 |
+
},
|
| 90 |
+
"riesgos": {
|
| 91 |
+
"description": "Riesgos que se mencionan",
|
| 92 |
+
"items": {
|
| 93 |
+
"enum": [
|
| 94 |
+
"caida_altura",
|
| 95 |
+
"caida_objetos",
|
| 96 |
+
"electrico",
|
| 97 |
+
"atrapamiento",
|
| 98 |
+
"atropello",
|
| 99 |
+
"golpes_cortes",
|
| 100 |
+
"polvo",
|
| 101 |
+
"ruido",
|
| 102 |
+
"quimico",
|
| 103 |
+
"izado_cargas"
|
| 104 |
+
],
|
| 105 |
+
"type": "string"
|
| 106 |
+
},
|
| 107 |
+
"type": "array"
|
| 108 |
+
},
|
| 109 |
+
"tareas": {
|
| 110 |
+
"description": "Trabajos que se van a realizar",
|
| 111 |
+
"items": {
|
| 112 |
+
"enum": [
|
| 113 |
+
"encofrado",
|
| 114 |
+
"desencofrado",
|
| 115 |
+
"ferrallado",
|
| 116 |
+
"hormigonado",
|
| 117 |
+
"apuntalamiento",
|
| 118 |
+
"tabiquería",
|
| 119 |
+
"enfoscado y enlucido",
|
| 120 |
+
"rozas",
|
| 121 |
+
"cerramiento de fachada",
|
| 122 |
+
"replanteo",
|
| 123 |
+
"instalación eléctrica",
|
| 124 |
+
"fontanería y saneamiento",
|
| 125 |
+
"climatización y ventilación",
|
| 126 |
+
"instalación de ascensor",
|
| 127 |
+
"placas solares",
|
| 128 |
+
"pruebas y ensayos",
|
| 129 |
+
"movimiento de tierras",
|
| 130 |
+
"excavación de zanjas",
|
| 131 |
+
"relleno y compactación",
|
| 132 |
+
"jardinería y desbroce",
|
| 133 |
+
"impermeabilización",
|
| 134 |
+
"cubierta y tejado",
|
| 135 |
+
"aislamiento",
|
| 136 |
+
"protecciones colectivas",
|
| 137 |
+
"pintura",
|
| 138 |
+
"alicatado y solado",
|
| 139 |
+
"pladur y falsos techos",
|
| 140 |
+
"carpintería y ventanas",
|
| 141 |
+
"demolición",
|
| 142 |
+
"retirada de escombros",
|
| 143 |
+
"limpieza de obra",
|
| 144 |
+
"montaje de andamio",
|
| 145 |
+
"desmontaje de andamio",
|
| 146 |
+
"trabajos de fachada",
|
| 147 |
+
"cerrajería y barandillas",
|
| 148 |
+
"estructura metálica",
|
| 149 |
+
"asfaltado y urbanización",
|
| 150 |
+
"bordillos y aceras",
|
| 151 |
+
"descarga de material",
|
| 152 |
+
"izado de cargas con grúa"
|
| 153 |
+
],
|
| 154 |
+
"type": "string"
|
| 155 |
+
},
|
| 156 |
+
"type": "array"
|
| 157 |
+
},
|
| 158 |
+
"trabajos_en_altura": {
|
| 159 |
+
"description": "Si se trabaja en altura",
|
| 160 |
+
"type": "boolean"
|
| 161 |
+
},
|
| 162 |
+
"zona": {
|
| 163 |
+
"description": "Zona de la obra donde se trabaja",
|
| 164 |
+
"enum": [],
|
| 165 |
+
"type": "string"
|
| 166 |
+
}
|
| 167 |
+
},
|
| 168 |
+
"required": [
|
| 169 |
+
"tareas"
|
| 170 |
+
],
|
| 171 |
+
"type": "object"
|
| 172 |
+
}
|
| 173 |
+
},
|
| 174 |
+
"type": "function"
|
| 175 |
+
}
|
whisper/small-decoder.int8-f16emb.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:363ee4c675a55c35373b131013412fa85d5fe949042ff72356cd4c790d127e44
|
| 3 |
+
size 182561595
|
whisper/small-encoder.int8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4cbe7b22fa9026b843b60a68640c747de05bafb1a11b57edc0e66c232d9f33a9
|
| 3 |
+
size 112442483
|
whisper/small-tokens.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|