Skip to content

Commit 7a07c08

Browse files
authored
Fix typo
1 parent 2246cca commit 7a07c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/segment-anything/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function cloneTensor(t) {
127127
function feedForSam(emb, points, labels) {
128128
const maskInput = new ort.Tensor(new Float32Array(256 * 256), [1, 1, 256, 256]);
129129
const hasMask = new ort.Tensor(new Float32Array([0]), [1]);
130-
const origianlImageSize = new ort.Tensor(new Float32Array(MODEL_HEIGHT * MODEL_WIDTH), [MODEL_HEIGHT, MODEL_WIDTH]);
130+
const originalImageSize = new ort.Tensor(new Float32Array(MODEL_HEIGHT * MODEL_WIDTH), [MODEL_HEIGHT, MODEL_WIDTH]);
131131
const pointCoords = new ort.Tensor(new Float32Array(points), [1, points.length / 2, 2]);
132132
const pointLabels = new ort.Tensor(new Float32Array(labels), [1, labels.length]);
133133

@@ -137,7 +137,7 @@ function feedForSam(emb, points, labels) {
137137
point_labels: pointLabels,
138138
mask_input: maskInput,
139139
has_mask_input: hasMask,
140-
orig_im_size_shape: origianlImageSize,
140+
orig_im_size_shape: originalImageSize,
141141
};
142142
}
143143

0 commit comments

Comments
 (0)