Skip to content

Commit 703c4df

Browse files
Address typos in tfjs-models documentation string (#1424)
1 parent f89b383 commit 703c4df

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

face-detection/demos/shared/params.js

+1-1
Original file line numberDiff line numberDiff 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,

face-landmarks-detection/demos/shared/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function isMobile() {
4040
async 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) {

gpt2/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import * as tf from '@tensorflow/tfjs-core';
1919
import {GPT2} from './gpt2';
2020
export {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.
2424
tf; // Prevent it from complaining about unused variables
2525

hand-pose-detection/demos/shared/params.js

+1-1
Original file line numberDiff line numberDiff 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,

hand-pose-detection/demos/shared/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function isMobile() {
3737
async 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) {

model-playground/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(TODO)
44

5-
## Developmenet
5+
## Development
66

77
### Development server
88

pose-detection/demos/live_video/src/params.js

+1-1
Original file line numberDiff line numberDiff 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,

pose-detection/demos/upload_video/src/params.js

+1-1
Original file line numberDiff line numberDiff 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,

pose-detection/src/blazepose_tfjs/constants.ts

+1-1
Original file line numberDiff line numberDiff 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
}

pose-detection/src/blazepose_tfjs/detector.ts

+2-2
Original file line numberDiff line numberDiff 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,

pose-detection/src/posenet/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type MobileNetMultiplier = 0.50|0.75|1.0;
2424
/**
2525
* Additional PoseNet model loading config.
2626
*
27-
* `architecture`: PoseNetArchitecture. It determines wich PoseNet architecture
27+
* `architecture`: PoseNetArchitecture. It determines which PoseNet architecture
2828
* to load. The supported architectures are: MobileNetV1 and ResNet.
2929
*
3030
* `outputStride`: Specifies the output stride of the PoseNet model.

0 commit comments

Comments
 (0)