Spaces:
Running
Running
File size: 1,156 Bytes
e176226 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | // Pines verificados en el Hub (2026-11-11). Ver README «Modelo y pines».
export const MODEL_ID = 'Xenova/owlv2-base-patch16-ensemble';
export const MODEL_REVISION = '3e255bc9bf304b3358a8c1945c0a9514eefe7f10';
export const MODEL_DTYPE = 'q8'; // -> onnx/model_quantized.onnx
export const MODEL_BYTES = 155312754;
export const MODEL_SHA256 = 'af8d6a041e4114b06eafabb03047350c7b8f136670a3f8afc7e73c5a74c2b24b';
export const BASE_MODEL = 'google/owlv2-base-patch16-ensemble';
export const TRANSFORMERS_VERSION = '4.3.2';
// Preguntas sí/no que la app hace sobre cada mesa. OWLv2 se entrenó con texto en inglés.
export const PERSON_QUERIES = ['a person', 'a head of hair seen from above'];
export const DISH_QUERIES = ['a plate', 'a cup', 'a drinking glass', 'a crumpled napkin', 'a bottle'];
export const DEFAULT_THRESHOLDS = { person: 0.2, dish: 0.15 };
// Límites
export const MAX_IMAGE_BYTES = 15 * 1024 * 1024;
export const MAX_VIDEO_BYTES = 60 * 1024 * 1024;
export const MAX_VIDEO_SECONDS = 180;
export const MAX_FRAMES = 60;
export const MAX_SIDE = 1280; // la imagen se reduce a este lado máximo antes de inferir
export const MAX_ZONES = 16;
|