- Introduced the `@diffusionstudio/sam2` package for video object segmentation and tracking in the browser using ONNX Runtime on WebGPU. - Added essential files including `package.json`, `tsconfig.json`, and various source files for core functionality, constants, and GPU processing. - Implemented model file fetching and caching from Hugging Face, along with memory management for tracking objects across frames. - Included shaders for preprocessing video frames and transposing feature maps for memory attention. - Established a comprehensive API for loading models, processing frames, and tracking objects with segmentation masks. - Ensured type definitions and module exports for seamless integration with existing projects.
19 lines
315 B
JSON
19 lines
315 B
JSON
{
|
|
"extends": "../../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.tsbuildinfo",
|
|
"erasableSyntaxOnly": false,
|
|
"lib": [
|
|
"es2024",
|
|
"DOM",
|
|
"DOM.Iterable"
|
|
],
|
|
"types": [
|
|
"@webgpu/types"
|
|
]
|
|
},
|
|
"include": [
|
|
"src"
|
|
]
|
|
}
|