Skip to content

Address typos in tfjs-models documentation string #1424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion face-detection/demos/shared/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function createDetector() {
}
}
/**
* This map descripes tunable flags and theior corresponding types.
* This map describes tunable flags and theior corresponding types.
*
* The flags (keys) in the map satisfy the following two conditions:
* - Is tunable. For example, `IS_BROWSER` and `IS_CHROME` is not tunable,
Expand Down
2 changes: 1 addition & 1 deletion face-landmarks-detection/demos/shared/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function isMobile() {
async function resetBackend(backendName) {
const ENGINE = tf.engine();
if (!(backendName in ENGINE.registryFactory)) {
throw new Error(`${backendName} backend is not registed.`);
throw new Error(`${backendName} backend is not registered.`);
}

if (backendName in ENGINE.registry) {
Expand Down
2 changes: 1 addition & 1 deletion gpt2/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as tf from '@tensorflow/tfjs-core';
import {GPT2} from './gpt2';
export {GPT2} from './gpt2';

// Note that while `tfjs-core` is availble here, we shouldn't import any backends.
// Note that while `tfjs-core` is available here, we shouldn't import any backends.
// Let the user choose which backends they want in their bundle.
tf; // Prevent it from complaining about unused variables

Expand Down
2 changes: 1 addition & 1 deletion hand-pose-detection/demos/shared/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const MEDIAPIPE_HANDS_CONFIG = {
render3D: true
};
/**
* This map descripes tunable flags and theior corresponding types.
* This map describes tunable flags and theior corresponding types.
*
* The flags (keys) in the map satisfy the following two conditions:
* - Is tunable. For example, `IS_BROWSER` and `IS_CHROME` is not tunable,
Expand Down
2 changes: 1 addition & 1 deletion hand-pose-detection/demos/shared/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function isMobile() {
async function resetBackend(backendName) {
const ENGINE = tf.engine();
if (!(backendName in ENGINE.registryFactory)) {
throw new Error(`${backendName} backend is not registed.`);
throw new Error(`${backendName} backend is not registered.`);
}

if (backendName in ENGINE.registry) {
Expand Down
2 changes: 1 addition & 1 deletion model-playground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

(TODO)

## Developmenet
## Development

### Development server

Expand Down
2 changes: 1 addition & 1 deletion pose-detection/demos/live_video/src/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const MOVENET_CONFIG = {
enableTracking: false
};
/**
* This map descripes tunable flags and theior corresponding types.
* This map describes tunable flags and theior corresponding types.
*
* The flags (keys) in the map satisfy the following two conditions:
* - Is tunable. For example, `IS_BROWSER` and `IS_CHROME` is not tunable,
Expand Down
2 changes: 1 addition & 1 deletion pose-detection/demos/upload_video/src/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const MOVENET_CONFIG = {
scoreThreshold: 0.3
};
/**
* This map descripes tunable flags and theior corresponding types.
* This map describes tunable flags and theior corresponding types.
*
* The flags (keys) in the map satisfy the following two conditions:
* - Is tunable. For example, `IS_BROWSER` and `IS_CHROME` is not tunable,
Expand Down
2 changes: 1 addition & 1 deletion pose-detection/src/blazepose_tfjs/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const BLAZEPOSE_WORLD_LANDMARKS_SMOOTHING_CONFIG_ACTUAL = {
// landmark velocity EMA filter.
minAllowedObjectScale: 1e-6,
disableValueScaling:
true // As world landmarks are predicted in real world 3D coordintates
true // As world landmarks are predicted in real world 3D coordinates
// in meters (rather than in pixels of input image) prediction
// scale does not depend on the pose size in the image.
}
Expand Down
4 changes: 2 additions & 2 deletions pose-detection/src/blazepose_tfjs/detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class BlazePoseTfjsDetector implements PoseDetector {
rotationVectorTargetAngleDegree: 90
});

// Expands pose rect with marging used during training.
// Expands pose rect with margin used during training.
// PoseDetectionToRoi: RectTransformationCalculation.
const roi = transformNormalizedRect(
rawRoi, imageSize,
Expand Down Expand Up @@ -644,7 +644,7 @@ class BlazePoseTfjsDetector implements PoseDetector {
rotationVectorTargetAngleDegree: 90
});

// Expands pose rect with marging used during training.
// Expands pose rect with margin used during training.
// PoseLandmarksToRoi: RectTransformationCalculator.
const roi = transformNormalizedRect(
rawRoi, imageSize,
Expand Down
2 changes: 1 addition & 1 deletion pose-detection/src/posenet/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type MobileNetMultiplier = 0.50|0.75|1.0;
/**
* Additional PoseNet model loading config.
*
* `architecture`: PoseNetArchitecture. It determines wich PoseNet architecture
* `architecture`: PoseNetArchitecture. It determines which PoseNet architecture
* to load. The supported architectures are: MobileNetV1 and ResNet.
*
* `outputStride`: Specifies the output stride of the PoseNet model.
Expand Down
Loading