Skip to content

Commit 1dd682b

Browse files
committed
EdgeTAM no longer requires image_positional_embeddings
1 parent e0117bd commit 1dd682b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6111,7 +6111,7 @@ export class EdgeTamModel extends EdgeTamPreTrainedModel {
61116111
const { num_feature_levels } = this.config.vision_config;
61126112
const image_embeddings_name = Array.from({ length: num_feature_levels }, (_, i) => `image_embeddings.${i}`);
61136113

6114-
if (image_embeddings_name.some(name => !model_inputs[name]) || !model_inputs.image_positional_embeddings) {
6114+
if (image_embeddings_name.some(name => !model_inputs[name])) {
61156115
// Compute the image embeddings if they are missing
61166116
model_inputs = {
61176117
...model_inputs,

0 commit comments

Comments
 (0)