File tree Expand file tree Collapse file tree 11 files changed +12
-12
lines changed
face-detection/demos/shared
face-landmarks-detection/demos/shared
hand-pose-detection/demos/shared Expand file tree Collapse file tree 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() {
6363 }
6464}
6565/**
66- * This map descripes tunable flags and theior corresponding types.
66+ * This map describes tunable flags and theior corresponding types.
6767 *
6868 * The flags (keys) in the map satisfy the following two conditions:
6969 * - 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() {
4040async function resetBackend ( backendName ) {
4141 const ENGINE = tf . engine ( ) ;
4242 if ( ! ( backendName in ENGINE . registryFactory ) ) {
43- throw new Error ( `${ backendName } backend is not registed .` ) ;
43+ throw new Error ( `${ backendName } backend is not registered .` ) ;
4444 }
4545
4646 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';
1919import { GPT2 } from './gpt2' ;
2020export { GPT2 } from './gpt2' ;
2121
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.
2323// Let the user choose which backends they want in their bundle.
2424tf ; // Prevent it from complaining about unused variables
2525
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const MEDIAPIPE_HANDS_CONFIG = {
3535 render3D : true
3636} ;
3737/**
38- * This map descripes tunable flags and theior corresponding types.
38+ * This map describes tunable flags and theior corresponding types.
3939 *
4040 * The flags (keys) in the map satisfy the following two conditions:
4141 * - 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() {
3737async function resetBackend ( backendName ) {
3838 const ENGINE = tf . engine ( ) ;
3939 if ( ! ( backendName in ENGINE . registryFactory ) ) {
40- throw new Error ( `${ backendName } backend is not registed .` ) ;
40+ throw new Error ( `${ backendName } backend is not registered .` ) ;
4141 }
4242
4343 if ( backendName in ENGINE . registry ) {
Original file line number Diff line number Diff line change 22
33(TODO)
44
5- ## Developmenet
5+ ## Development
66
77### Development server
88
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export const MOVENET_CONFIG = {
4949 enableTracking : false
5050} ;
5151/**
52- * This map descripes tunable flags and theior corresponding types.
52+ * This map describes tunable flags and theior corresponding types.
5353 *
5454 * The flags (keys) in the map satisfy the following two conditions:
5555 * - 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 = {
3939 scoreThreshold : 0.3
4040} ;
4141/**
42- * This map descripes tunable flags and theior corresponding types.
42+ * This map describes tunable flags and theior corresponding types.
4343 *
4444 * The flags (keys) in the map satisfy the following two conditions:
4545 * - 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 = {
165165 // landmark velocity EMA filter.
166166 minAllowedObjectScale : 1e-6 ,
167167 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
169169 // in meters (rather than in pixels of input image) prediction
170170 // scale does not depend on the pose size in the image.
171171 }
Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ class BlazePoseTfjsDetector implements PoseDetector {
384384 rotationVectorTargetAngleDegree : 90
385385 } ) ;
386386
387- // Expands pose rect with marging used during training.
387+ // Expands pose rect with margin used during training.
388388 // PoseDetectionToRoi: RectTransformationCalculation.
389389 const roi = transformNormalizedRect (
390390 rawRoi , imageSize ,
@@ -644,7 +644,7 @@ class BlazePoseTfjsDetector implements PoseDetector {
644644 rotationVectorTargetAngleDegree : 90
645645 } ) ;
646646
647- // Expands pose rect with marging used during training.
647+ // Expands pose rect with margin used during training.
648648 // PoseLandmarksToRoi: RectTransformationCalculator.
649649 const roi = transformNormalizedRect (
650650 rawRoi , imageSize ,
You can’t perform that action at this time.
0 commit comments