Skip to content

newer model, different embedding size #148

@transfluxus

Description

@transfluxus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions