File tree 11 files changed +12
-12
lines changed
face-detection/demos/shared
face-landmarks-detection/demos/shared
hand-pose-detection/demos/shared
11 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export async function createDetector() {
63
63
}
64
64
}
65
65
/**
66
- * This map descripes tunable flags and theior corresponding types.
66
+ * This map describes tunable flags and theior corresponding types.
67
67
*
68
68
* The flags (keys) in the map satisfy the following two conditions:
69
69
* - Is tunable. For example, `IS_BROWSER` and `IS_CHROME` is not tunable,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export function isMobile() {
40
40
async function resetBackend ( backendName ) {
41
41
const ENGINE = tf . engine ( ) ;
42
42
if ( ! ( backendName in ENGINE . registryFactory ) ) {
43
- throw new Error ( `${ backendName } backend is not registed .` ) ;
43
+ throw new Error ( `${ backendName } backend is not registered .` ) ;
44
44
}
45
45
46
46
if ( backendName in ENGINE . registry ) {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import * as tf from '@tensorflow/tfjs-core';
19
19
import { GPT2 } from './gpt2' ;
20
20
export { GPT2 } from './gpt2' ;
21
21
22
- // Note that while `tfjs-core` is availble here, we shouldn't import any backends.
22
+ // Note that while `tfjs-core` is available here, we shouldn't import any backends.
23
23
// Let the user choose which backends they want in their bundle.
24
24
tf ; // Prevent it from complaining about unused variables
25
25
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const MEDIAPIPE_HANDS_CONFIG = {
35
35
render3D : true
36
36
} ;
37
37
/**
38
- * This map descripes tunable flags and theior corresponding types.
38
+ * This map describes tunable flags and theior corresponding types.
39
39
*
40
40
* The flags (keys) in the map satisfy the following two conditions:
41
41
* - Is tunable. For example, `IS_BROWSER` and `IS_CHROME` is not tunable,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export function isMobile() {
37
37
async function resetBackend ( backendName ) {
38
38
const ENGINE = tf . engine ( ) ;
39
39
if ( ! ( backendName in ENGINE . registryFactory ) ) {
40
- throw new Error ( `${ backendName } backend is not registed .` ) ;
40
+ throw new Error ( `${ backendName } backend is not registered .` ) ;
41
41
}
42
42
43
43
if ( backendName in ENGINE . registry ) {
Original file line number Diff line number Diff line change 2
2
3
3
(TODO)
4
4
5
- ## Developmenet
5
+ ## Development
6
6
7
7
### Development server
8
8
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export const MOVENET_CONFIG = {
49
49
enableTracking : false
50
50
} ;
51
51
/**
52
- * This map descripes tunable flags and theior corresponding types.
52
+ * This map describes tunable flags and theior corresponding types.
53
53
*
54
54
* The flags (keys) in the map satisfy the following two conditions:
55
55
* - Is tunable. For example, `IS_BROWSER` and `IS_CHROME` is not tunable,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export const MOVENET_CONFIG = {
39
39
scoreThreshold : 0.3
40
40
} ;
41
41
/**
42
- * This map descripes tunable flags and theior corresponding types.
42
+ * This map describes tunable flags and theior corresponding types.
43
43
*
44
44
* The flags (keys) in the map satisfy the following two conditions:
45
45
* - Is tunable. For example, `IS_BROWSER` and `IS_CHROME` is not tunable,
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export const BLAZEPOSE_WORLD_LANDMARKS_SMOOTHING_CONFIG_ACTUAL = {
165
165
// landmark velocity EMA filter.
166
166
minAllowedObjectScale : 1e-6 ,
167
167
disableValueScaling :
168
- true // As world landmarks are predicted in real world 3D coordintates
168
+ true // As world landmarks are predicted in real world 3D coordinates
169
169
// in meters (rather than in pixels of input image) prediction
170
170
// scale does not depend on the pose size in the image.
171
171
}
Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ class BlazePoseTfjsDetector implements PoseDetector {
384
384
rotationVectorTargetAngleDegree : 90
385
385
} ) ;
386
386
387
- // Expands pose rect with marging used during training.
387
+ // Expands pose rect with margin used during training.
388
388
// PoseDetectionToRoi: RectTransformationCalculation.
389
389
const roi = transformNormalizedRect (
390
390
rawRoi , imageSize ,
@@ -644,7 +644,7 @@ class BlazePoseTfjsDetector implements PoseDetector {
644
644
rotationVectorTargetAngleDegree : 90
645
645
} ) ;
646
646
647
- // Expands pose rect with marging used during training.
647
+ // Expands pose rect with margin used during training.
648
648
// PoseLandmarksToRoi: RectTransformationCalculator.
649
649
const roi = transformNormalizedRect (
650
650
rawRoi , imageSize ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export type MobileNetMultiplier = 0.50|0.75|1.0;
24
24
/**
25
25
* Additional PoseNet model loading config.
26
26
*
27
- * `architecture`: PoseNetArchitecture. It determines wich PoseNet architecture
27
+ * `architecture`: PoseNetArchitecture. It determines which PoseNet architecture
28
28
* to load. The supported architectures are: MobileNetV1 and ResNet.
29
29
*
30
30
* `outputStride`: Specifies the output stride of the PoseNet model.
You can’t perform that action at this time.
0 commit comments