editor/packages/sam2/package.json
konstantin-paulus 88f74f8bfe Enhance SAM 2.1 model structure and GPU processing
- Updated `package.json` to include new model export for `./models`.
- Expanded `constants.ts` to define new types and structures for SAM 2.1 models, including `Sam2Model` and `Sam2Geometry`.
- Refactored `gpu.ts` to utilize dynamic image sizes and geometry for frame processing, improving flexibility in GPU operations.
- Enhanced `load.ts` to support model-specific loading and progress tracking, optimizing the user experience during model initialization.
- Updated `mask.ts` to redefine mask handling with logits and improved painting functionality for strokes.
- Refactored `tracker.ts` to integrate new model structures and enhance video tracking capabilities with corrected masks.
- Improved documentation and type definitions across the codebase for better clarity and usability.
2026-09-27 23:43:47 +02:00

32 lines
769 B
JSON

{
"name": "@diffusionstudio/sam2",
"version": "0.1.0",
"description": "SAM 2.1 video object segmentation and tracking in the browser: ONNX Runtime on WebGPU, frames decoded with mediabunny. Weights are fetched from Hugging Face on first use and cached locally.",
"license": "MPL-2.0",
"type": "module",
"sideEffects": false,
"exports": {
".": "./src/index.ts",
"./mask": "./src/mask.ts",
"./models": "./src/constants.ts"
},
"scripts": {
"check": "tsc --noEmit"
},
"keywords": [
"sam2",
"segmentation",
"tracking",
"webgpu",
"onnx"
],
"dependencies": {
"mediabunny": "^1.32.2",
"onnxruntime-web": "^1.30.0"
},
"devDependencies": {
"@webgpu/types": "^0.1.71",
"typescript": "~5.9.3"
}
}