Skip to content
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

Compare 2 photographs and get distance based on model #18

Closed
cesarandreslopez opened this issue Jul 19, 2018 · 3 comments
Closed

Compare 2 photographs and get distance based on model #18

cesarandreslopez opened this issue Jul 19, 2018 · 3 comments

Comments

@cesarandreslopez
Copy link

I've been trying to write up code that would allow me to extract features of a person, given by jpg, extract the features based on the model and then calculate the distance to other features extracted from other person shot.

Any pointers on this would be most appreciated.

@huanghoujing
Copy link
Owner

Hi, thanks for your interest! The common procedure would be

  1. Instantiate the model and load the trained model weight
  2. Read your image, resize, subtract mean, divide by variance, transform to Variable
  3. Feed the image to the model and get the feature
  4. Compare feature distance between images

In this way, you don't need to use any Dataset interface of this code and can simply skip it.

@Pamulapati13
Copy link

hi,this repo is really good.
Can I get the trained model weights or should i train it locally on my PC

@huanghoujing
Copy link
Owner

Hi, you can download the trained models as described in README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants