Skip to content

Commit 91ad7ab

Browse files
allow loading of quantized weights + quantized face landmark model
1 parent 9db970d commit 91ad7ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+929
-433
lines changed

dist/commons/isTensor.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as tf from '@tensorflow/tfjs-core';
2+
export declare function isTensor(tensor: tf.Tensor, dim: number): boolean;
3+
export declare function isTensor1D(tensor: tf.Tensor): boolean;
4+
export declare function isTensor2D(tensor: tf.Tensor): boolean;
5+
export declare function isTensor3D(tensor: tf.Tensor): boolean;
6+
export declare function isTensor4D(tensor: tf.Tensor): boolean;

dist/commons/isTensor.js

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/commons/isTensor.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/commons/loadWeightMap.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export declare function getModelUris(uri: string | undefined, defaultModelName: string): {
2+
manifestUri: string;
3+
modelBaseUri: string;
4+
};
5+
export declare function loadWeightMap(uri: string | undefined, defaultModelName: string): Promise<any>;

dist/commons/loadWeightMap.js

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/commons/loadWeightMap.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)