img-auto-parallax 0.1.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/define.mjs +1 -1
- package/dist/{element-C2AqZorC.d.mts → element-Q75M2zZ8.d.mts} +50 -53
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +3 -1
- package/dist/internal.d.mts +34 -0
- package/dist/internal.mjs +1 -0
- package/dist/models-BeWE4rVt.d.mts +56 -0
- package/dist/models-X3MUVk-z.mjs +527 -0
- package/dist/{src-BiTfnOJ8.mjs → src-1sjdGhl1.mjs} +894 -854
- package/dist/types.d.mts +3 -2
- package/package.json +6 -34
- package/dist/cli.d.mts +0 -1
- package/dist/cli.mjs +0 -64
- package/dist/node-BCog5g3V.d.mts +0 -108
- package/dist/node-DOo42478.mjs +0 -412
- package/dist/node.d.mts +0 -6
- package/dist/node.mjs +0 -1
- package/dist/vite.d.mts +0 -11
- package/dist/vite.mjs +0 -29
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# img-auto-parallax
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An `<img>` drop-in WebComponent that brings any photo to life with depth and parallax effects, right on the device.
|
|
4
4
|
|
|
5
5
|
[](https://img-auto-parallax.vercel.app)
|
|
6
6
|
|
|
@@ -33,6 +33,16 @@ pnpm dev # docs + playground, using the library source
|
|
|
33
33
|
pnpm run ci # lint, typecheck, knip, build, test
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
## Sponsors
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
<a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
|
|
40
|
+
<img src="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg" alt="Sponsors"/>
|
|
41
|
+
</a>
|
|
42
|
+
</p>
|
|
43
|
+
|
|
36
44
|
## License
|
|
37
45
|
|
|
38
|
-
[MIT](./LICENSE.md).
|
|
46
|
+
[MIT](./LICENSE.md).
|
|
47
|
+
|
|
48
|
+
The bundled model is Apache-2.0, see [`models/NOTICE.md`](https://github.com/antfu/img-auto-parallax/blob/main/packages/img-auto-parallax/models/NOTICE.md).
|
package/dist/define.mjs
CHANGED
|
@@ -1,57 +1,25 @@
|
|
|
1
|
+
import { n as DepthModelOption, r as DepthModelPreset } from "./models-BeWE4rVt.mjs";
|
|
1
2
|
import "vgpu";
|
|
2
|
-
/** Describes an ONNX depth model the runtime can drive. */
|
|
3
|
-
interface DepthModelSpec {
|
|
4
|
-
/** Location of the `.onnx` file. */
|
|
5
|
-
url: string | URL;
|
|
6
|
-
/** Graph input name (NCHW float32). */
|
|
7
|
-
inputName: string;
|
|
8
|
-
/** Graph output name (float32, `[1, H, W]` or `[1, 1, H, W]`). */
|
|
9
|
-
outputName: string;
|
|
10
|
-
/**
|
|
11
|
-
* Input sizes are rounded to a multiple of this (the ViT patch size for
|
|
12
|
-
* Depth Anything). Ignored when `fixedSize` is set.
|
|
13
|
-
*/
|
|
14
|
-
multiple?: number;
|
|
15
|
-
/** Fixed `[width, height]` input. When omitted, the input follows each image's aspect ratio. */
|
|
16
|
-
fixedSize?: readonly [number, number];
|
|
17
|
-
/** How RGB is normalised before inference: ImageNet mean/std, or plain 0–1. */
|
|
18
|
-
normalization: 'imagenet' | 'unit';
|
|
19
|
-
/**
|
|
20
|
-
* How to read the output. `relative`: larger values are nearer (inverse
|
|
21
|
-
* depth, auto-ranged per image). `metric`: metres, mapped with a log scale.
|
|
22
|
-
*/
|
|
23
|
-
output: {
|
|
24
|
-
kind: 'relative';
|
|
25
|
-
} | {
|
|
26
|
-
kind: 'metric';
|
|
27
|
-
near: number;
|
|
28
|
-
far: number;
|
|
29
|
-
};
|
|
30
|
-
/** Needs the WebGPU `shader-f16` feature (fp16 weights). */
|
|
31
|
-
requiresF16?: boolean;
|
|
32
|
-
/** Used instead when `requiresF16` is set and the GPU lacks `shader-f16`. */
|
|
33
|
-
fallback?: DepthModelSpec;
|
|
34
|
-
/** Human-readable name, for pickers and logs. */
|
|
35
|
-
label?: string;
|
|
36
|
-
/** Download size in bytes, when known. */
|
|
37
|
-
bytes?: number;
|
|
38
|
-
}
|
|
39
|
-
type DepthModelPreset = 'depth-anything' | 'midas' | 'fastdepth';
|
|
40
3
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
4
|
+
* Where downloaded models are kept across page loads:
|
|
5
|
+
* - `cache-api`: the Cache API (stores the HTTP response; suits large binaries)
|
|
6
|
+
* - `indexeddb`: IndexedDB
|
|
7
|
+
* - `none`: only the browser's HTTP cache (default)
|
|
8
|
+
*/
|
|
9
|
+
type ModelCache = 'cache-api' | 'indexeddb' | 'none';
|
|
10
|
+
/**
|
|
11
|
+
* Where estimated depth maps are kept, so a later visit skips the model entirely:
|
|
12
|
+
* - `session`: `sessionStorage`, until the tab closes (~5 MB, a dozen or so images)
|
|
13
|
+
* - `indexeddb`: IndexedDB, until cleared
|
|
14
|
+
* - `none`: recomputed on every page load (default)
|
|
43
15
|
*/
|
|
44
|
-
|
|
45
|
-
declare const DEFAULT_MODEL: DepthModelPreset;
|
|
16
|
+
type DepthMapCache = 'session' | 'indexeddb' | 'none';
|
|
46
17
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
18
|
+
* Remove everything img-auto-parallax stored across page loads: cached models
|
|
19
|
+
* (Cache API and IndexedDB) and depth maps (sessionStorage and IndexedDB).
|
|
20
|
+
* Results already in memory on this page are kept.
|
|
49
21
|
*/
|
|
50
|
-
declare function
|
|
51
|
-
/** Names usable in the `model` attribute: the presets and registered models. */
|
|
52
|
-
declare function listModels(): string[];
|
|
53
|
-
/** A preset or registered name, or a full spec. */
|
|
54
|
-
type DepthModelOption = DepthModelPreset | (string & {}) | DepthModelSpec;
|
|
22
|
+
declare function clearCache(): Promise<void>;
|
|
55
23
|
/** True on devices without a hovering pointer that expose orientation events. */
|
|
56
24
|
declare function prefersGyro(): boolean;
|
|
57
25
|
/** Called when `getGyroPermission()` changes, e.g. after a grant or once readings arrive. */
|
|
@@ -86,8 +54,20 @@ interface ImgAutoParallaxConfig {
|
|
|
86
54
|
model: DepthModelOption;
|
|
87
55
|
/** Override where ONNX Runtime loads its `.wasm` files from. Only read before the first load. */
|
|
88
56
|
wasmPaths?: string;
|
|
89
|
-
/** Model download progress. */
|
|
57
|
+
/** Model download progress. A model read from `cacheModel` reports once, complete. */
|
|
90
58
|
onProgress?: (progress: ModelProgress) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Keep downloaded models across page loads: `'cache-api'` (Cache API), `'indexeddb'`,
|
|
61
|
+
* or `'none'` / `false` (default: only the browser's HTTP cache).
|
|
62
|
+
* An element's `cache-model` attribute overrides it.
|
|
63
|
+
*/
|
|
64
|
+
cacheModel?: ModelCache | false;
|
|
65
|
+
/**
|
|
66
|
+
* Keep estimated depth maps across page loads, so a later visit shows the effect
|
|
67
|
+
* without loading the model: `'session'` (sessionStorage), `'indexeddb'`,
|
|
68
|
+
* or `'none'` / `false` (default). An element's `cache-depth-map` attribute overrides it.
|
|
69
|
+
*/
|
|
70
|
+
cacheDepthMap?: DepthMapCache | false;
|
|
91
71
|
}
|
|
92
72
|
/**
|
|
93
73
|
* Configure the shared runtime. Can be called at any time; changing `model`
|
|
@@ -143,7 +123,7 @@ interface ParallaxOptions {
|
|
|
143
123
|
disabled?: boolean;
|
|
144
124
|
/**
|
|
145
125
|
* A precompiled depth map (grayscale, near = bright, any size), e.g. from
|
|
146
|
-
* `img-auto-parallax precompute`. When set, no model or ONNX Runtime is loaded.
|
|
126
|
+
* `img-auto-parallax-build precompute`. When set, no model or ONNX Runtime is loaded.
|
|
147
127
|
*/
|
|
148
128
|
srcDepth?: string | null;
|
|
149
129
|
/** Model for this element: a preset or a `registerModel()` name. Defaults to `configure({ model })`. */
|
|
@@ -172,6 +152,10 @@ interface ParallaxOptions {
|
|
|
172
152
|
layer?: ParallaxLayer;
|
|
173
153
|
/** Nearness threshold between `layer="foreground"` and `layer="background"` (0–1, default 0.6). */
|
|
174
154
|
cutoff?: number;
|
|
155
|
+
/** Where the model this element downloads is kept across page loads. Defaults to `configure({ cacheModel })`. */
|
|
156
|
+
cacheModel?: ModelCache | null;
|
|
157
|
+
/** Where this element's estimated depth map is kept across page loads. Defaults to `configure({ cacheDepthMap })`. */
|
|
158
|
+
cacheDepthMap?: DepthMapCache | null;
|
|
175
159
|
}
|
|
176
160
|
/** `detail` of the `parallax-error` event. */
|
|
177
161
|
interface ParallaxErrorDetail {
|
|
@@ -226,12 +210,25 @@ declare class ImgAutoParallaxElement extends HTMLElement implements Required<Par
|
|
|
226
210
|
/** Model for this element: `auto`, a preset (`q4f16`, `q4`, `fp16`, `fp32`) or a registered name. Defaults to `configure({ model })`. */
|
|
227
211
|
/**
|
|
228
212
|
* A precompiled depth map (grayscale, near = bright, any size), e.g. from
|
|
229
|
-
* `img-auto-parallax precompute`. When set, no model or ONNX Runtime is loaded.
|
|
213
|
+
* `img-auto-parallax-build precompute`. When set, no model or ONNX Runtime is loaded.
|
|
230
214
|
*/
|
|
231
215
|
get srcDepth(): string | null;
|
|
232
216
|
set srcDepth(value: string | null | undefined);
|
|
233
217
|
get model(): string | null;
|
|
234
218
|
set model(value: string | null);
|
|
219
|
+
/**
|
|
220
|
+
* Where this element keeps the model it downloads across page loads: `cache-api`
|
|
221
|
+
* (Cache API), `indexeddb` or `none`. Defaults to `configure({ cacheModel })`.
|
|
222
|
+
*/
|
|
223
|
+
get cacheModel(): ModelCache | null;
|
|
224
|
+
set cacheModel(value: ModelCache | null);
|
|
225
|
+
/**
|
|
226
|
+
* Where this element keeps its estimated depth map across page loads, so a later
|
|
227
|
+
* visit needs no model: `session` (sessionStorage), `indexeddb` or `none`.
|
|
228
|
+
* Defaults to `configure({ cacheDepthMap })`. Ignored with `src-depth`.
|
|
229
|
+
*/
|
|
230
|
+
get cacheDepthMap(): DepthMapCache | null;
|
|
231
|
+
set cacheDepthMap(value: DepthMapCache | null);
|
|
235
232
|
/** Maximum displacement as a fraction of the image height (0–0.3, default 0.03). */
|
|
236
233
|
get strength(): number;
|
|
237
234
|
set strength(value: number);
|
|
@@ -289,4 +286,4 @@ declare class ImgAutoParallaxElement extends HTMLElement implements Required<Par
|
|
|
289
286
|
disconnectedCallback(): void;
|
|
290
287
|
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
291
288
|
}
|
|
292
|
-
export {
|
|
289
|
+
export { ModelCache as C, DepthMapCache as S, GyroPermission as _, ParallaxIdle as a, prefersGyro as b, ParallaxState as c, ImgAutoParallaxConfig as d, ModelProgress as f, preload as g, isSupported as h, ParallaxErrorDetail as i, ParallaxTrigger as l, hasWebGpu as m, ImgAutoParallaxElement as n, ParallaxLayer as o, configure as p, ImgAutoParallaxEventMap as r, ParallaxOptions as s, DEFAULTS as t, ParallaxView as u, getGyroPermission as v, clearCache as w, requestGyroPermission as x, onGyroPermissionChange as y };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as ModelCache, S as DepthMapCache, _ as GyroPermission, a as ParallaxIdle, b as prefersGyro, c as ParallaxState, d as ImgAutoParallaxConfig, f as ModelProgress, g as preload, h as isSupported, i as ParallaxErrorDetail, l as ParallaxTrigger, m as hasWebGpu, n as ImgAutoParallaxElement, o as ParallaxLayer, p as configure, r as ImgAutoParallaxEventMap, s as ParallaxOptions, t as DEFAULTS, u as ParallaxView, v as getGyroPermission, w as clearCache, x as requestGyroPermission, y as onGyroPermissionChange } from "./element-Q75M2zZ8.mjs";
|
|
2
|
+
import { a as MODEL_PRESETS, i as DepthModelSpec, n as DepthModelOption, o as listModels, r as DepthModelPreset, s as registerModel, t as DEFAULT_MODEL } from "./models-BeWE4rVt.mjs";
|
|
2
3
|
export declare const DEFAULT_TAG = "img-auto-parallax";
|
|
3
4
|
/**
|
|
4
5
|
* Register the custom element (idempotent). Pass a different tag to avoid
|
|
@@ -10,4 +11,4 @@ declare global {
|
|
|
10
11
|
'img-auto-parallax': ImgAutoParallaxElement;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
export { DEFAULTS, DEFAULT_MODEL, type DepthModelOption, type DepthModelPreset, type DepthModelSpec, type GyroPermission, type ImgAutoParallaxConfig, ImgAutoParallaxElement, type ImgAutoParallaxEventMap, MODEL_PRESETS, type ModelProgress, type ParallaxErrorDetail, type ParallaxIdle, type ParallaxLayer, type ParallaxOptions, type ParallaxState, type ParallaxTrigger, type ParallaxView, configure, getGyroPermission, hasWebGpu, isSupported, listModels, onGyroPermissionChange, prefersGyro, preload, registerModel, requestGyroPermission };
|
|
14
|
+
export { DEFAULTS, DEFAULT_MODEL, type DepthMapCache, type DepthModelOption, type DepthModelPreset, type DepthModelSpec, type GyroPermission, type ImgAutoParallaxConfig, ImgAutoParallaxElement, type ImgAutoParallaxEventMap, MODEL_PRESETS, type ModelCache, type ModelProgress, type ParallaxErrorDetail, type ParallaxIdle, type ParallaxLayer, type ParallaxOptions, type ParallaxState, type ParallaxTrigger, type ParallaxView, clearCache, configure, getGyroPermission, hasWebGpu, isSupported, listModels, onGyroPermissionChange, prefersGyro, preload, registerModel, requestGyroPermission };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { h as clearCache, i as registerModel, n as MODEL_PRESETS, r as listModels, t as DEFAULT_MODEL } from "./models-X3MUVk-z.mjs";
|
|
2
|
+
import { a as configure, c as preload, d as prefersGyro, f as requestGyroPermission, i as ImgAutoParallaxElement, l as getGyroPermission, n as defineImgAutoParallax, o as hasWebGpu, r as DEFAULTS, s as isSupported, t as DEFAULT_TAG, u as onGyroPermissionChange } from "./src-1sjdGhl1.mjs";
|
|
3
|
+
export { DEFAULTS, DEFAULT_MODEL, DEFAULT_TAG, ImgAutoParallaxElement, MODEL_PRESETS, clearCache, configure, defineImgAutoParallax, getGyroPermission, hasWebGpu, isSupported, listModels, onGyroPermissionChange, prefersGyro, preload, registerModel, requestGyroPermission };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { c as resolveModel, i as DepthModelSpec, n as DepthModelOption, t as DEFAULT_MODEL } from "./models-BeWE4rVt.mjs";
|
|
2
|
+
/** Longest side of the colour image kept on the GPU for display. */
|
|
3
|
+
export declare const MAX_COLOUR_SIDE = 2048;
|
|
4
|
+
/**
|
|
5
|
+
* Model input size for a source image. Follows the image's aspect ratio with
|
|
6
|
+
* the long side near `resolution`, rounded to the model's `multiple`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function inferenceSize(model: Pick<DepthModelSpec, 'fixedSize' | 'multiple'>, sourceWidth: number, sourceHeight: number, resolution: number): [number, number];
|
|
9
|
+
/** Interleaved RGBA bytes to planar float32 RGB (NCHW without the batch axis). */
|
|
10
|
+
export declare function rgbaToNchw(rgba: ArrayLike<number>, width: number, height: number, normalization: DepthModelSpec['normalization']): Float32Array;
|
|
11
|
+
/** Fit `width`×`height` inside `maxSide`, never upscaling. */
|
|
12
|
+
export declare function fitWithin(width: number, height: number, maxSide: number): [number, number];
|
|
13
|
+
/**
|
|
14
|
+
* Raw model output to 0..1 nearness (1 = nearest), matching the GPU path
|
|
15
|
+
* (reduce-range.wgsl + normalize-depth.wgsl), so precompiled maps look the same.
|
|
16
|
+
*/
|
|
17
|
+
export declare function normalizeDepth(raw: ArrayLike<number>, output: DepthModelSpec['output']): Float32Array;
|
|
18
|
+
/** Box-filtered (area) RGBA resize, for decoding images outside the browser. */
|
|
19
|
+
export declare function resizeRgba(src: ArrayLike<number>, sw: number, sh: number, dw: number, dh: number): Uint8ClampedArray;
|
|
20
|
+
/**
|
|
21
|
+
* Nearness (0..1) to grayscale RGBA bytes: the precompiled depth map format.
|
|
22
|
+
* `levels` (2–256, default 256) rounds to that many evenly spaced grays, which
|
|
23
|
+
* PNG compresses far better.
|
|
24
|
+
*/
|
|
25
|
+
export declare function nearnessToRgba(nearness: ArrayLike<number>, levels?: number): Uint8ClampedArray;
|
|
26
|
+
/** Conventional depth map path for an image: `photo.jpg` → `photo.depth.png`. */
|
|
27
|
+
export declare function depthMapPath(image: string, suffix?: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Joint bilateral upsampling of nearness to the colour image's size, guided by
|
|
30
|
+
* its colours, so depth edges follow the photo's edges. The CPU twin of
|
|
31
|
+
* shaders/upsample-depth.wgsl (precompiled maps match what the GPU computes).
|
|
32
|
+
*/
|
|
33
|
+
export declare function jointBilateralUpsample(low: ArrayLike<number>, lw: number, lh: number, rgba: ArrayLike<number>, hw: number, hh: number): Float32Array;
|
|
34
|
+
export { DEFAULT_MODEL, type DepthModelOption, type DepthModelSpec, resolveModel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as DEFAULT_MODEL, o as MAX_COLOUR_SIDE, x as depthMapPath, c as fitWithin, l as inferenceSize, S as jointBilateralUpsample, C as nearnessToRgba, w as normalizeDepth, T as resizeRgba, a as resolveModel, f as rgbaToNchw } from "./models-X3MUVk-z.mjs";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/** Describes an ONNX depth model the runtime can drive. */
|
|
2
|
+
interface DepthModelSpec {
|
|
3
|
+
/** Location of the `.onnx` file. */
|
|
4
|
+
url: string | URL;
|
|
5
|
+
/** Graph input name (NCHW float32). */
|
|
6
|
+
inputName: string;
|
|
7
|
+
/** Graph output name (float32, `[1, H, W]` or `[1, 1, H, W]`). */
|
|
8
|
+
outputName: string;
|
|
9
|
+
/**
|
|
10
|
+
* Input sizes are rounded to a multiple of this (the ViT patch size for
|
|
11
|
+
* Depth Anything). Ignored when `fixedSize` is set.
|
|
12
|
+
*/
|
|
13
|
+
multiple?: number;
|
|
14
|
+
/** Fixed `[width, height]` input. When omitted, the input follows each image's aspect ratio. */
|
|
15
|
+
fixedSize?: readonly [number, number];
|
|
16
|
+
/** How RGB is normalised before inference: ImageNet mean/std, or plain 0–1. */
|
|
17
|
+
normalization: 'imagenet' | 'unit';
|
|
18
|
+
/**
|
|
19
|
+
* How to read the output. `relative`: larger values are nearer (inverse
|
|
20
|
+
* depth, auto-ranged per image). `metric`: metres, mapped with a log scale.
|
|
21
|
+
*/
|
|
22
|
+
output: {
|
|
23
|
+
kind: 'relative';
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'metric';
|
|
26
|
+
near: number;
|
|
27
|
+
far: number;
|
|
28
|
+
};
|
|
29
|
+
/** Needs the WebGPU `shader-f16` feature (fp16 weights). */
|
|
30
|
+
requiresF16?: boolean;
|
|
31
|
+
/** Used instead when `requiresF16` is set and the GPU lacks `shader-f16`. */
|
|
32
|
+
fallback?: DepthModelSpec;
|
|
33
|
+
/** Human-readable name, for pickers and logs. */
|
|
34
|
+
label?: string;
|
|
35
|
+
/** Download size in bytes, when known. */
|
|
36
|
+
bytes?: number;
|
|
37
|
+
}
|
|
38
|
+
type DepthModelPreset = 'depth-anything' | 'midas' | 'fastdepth';
|
|
39
|
+
/**
|
|
40
|
+
* The built-in models. Bundlers that understand `new URL(…, import.meta.url)`
|
|
41
|
+
* (Vite, webpack 5, Rollup) emit the bundled files as assets automatically.
|
|
42
|
+
*/
|
|
43
|
+
declare const MODEL_PRESETS: Record<DepthModelPreset, DepthModelSpec>;
|
|
44
|
+
declare const DEFAULT_MODEL: DepthModelPreset;
|
|
45
|
+
/**
|
|
46
|
+
* Register a custom model under a name, so elements can pick it with
|
|
47
|
+
* `model="name"`. Re-registering a name replaces it for future estimates.
|
|
48
|
+
*/
|
|
49
|
+
declare function registerModel(name: string, spec: DepthModelSpec): void;
|
|
50
|
+
/** Names usable in the `model` attribute: the presets and registered models. */
|
|
51
|
+
declare function listModels(): string[];
|
|
52
|
+
/** A preset or registered name, or a full spec. */
|
|
53
|
+
type DepthModelOption = DepthModelPreset | (string & {}) | DepthModelSpec;
|
|
54
|
+
/** Resolve a model option to the spec that runs on this GPU. */
|
|
55
|
+
declare function resolveModel(option: DepthModelOption, supportsF16: boolean): DepthModelSpec;
|
|
56
|
+
export { MODEL_PRESETS as a, resolveModel as c, DepthModelSpec as i, DepthModelOption as n, listModels as o, DepthModelPreset as r, registerModel as s, DEFAULT_MODEL as t };
|