I want to use a newer model so I found model-20180402-114759 of ResNet v1.
However, this creates embeddings of the size 512 not 128 like the default model.
This makes the program crash cuz of these lines (l. 450 in face.ts)
} else if (embedding.shape[0] !== 128) {
throw new Error(`Face<${this.md5}> embedding dim is not 128! got: ${embedding.shape[0]}`)
}
Just commenting it out worked. So maybe you leave that part out or check if the embedding is correct in a different way.
I want to use a newer model so I found
model-20180402-114759of ResNet v1.However, this creates embeddings of the size 512 not 128 like the default model.
This makes the program crash cuz of these lines (l. 450 in
face.ts)Just commenting it out worked. So maybe you leave that part out or check if the embedding is correct in a different way.