Skip to content

caomw/IsFAM.net

 
 

Repository files navigation

IsFAM.net

[ Discriminative Subgraphs for Discovering Family Photos ]

  • We apply CORK algorithm for classifying group photos into family and non-family.

[ Requirements ]

[ Querying Example ]

  • First of all, you need to get a subsrciption key of face detection API from Project Oxford AI: https://www.projectoxford.ai/face

  • it returns a json with age and gender and face positions in an image.

  • Fill your subscription key into 'projection.py',

    request.add_header('Ocp-Apim-Subscription-Key', 'FILL YOUR SUBSCRIPTION KEY of OXFORD API')
    
  • Then, execute querying.py

  • If you want to test your own image, replace the q1.jpg with yours in 'query' folder.

  • If you want to change the train model, chage the model number in querying.py,

    model_path = 'model_1'
    

[ CORK and create_trainmodel.py ]

  • You can build your own train model using CORK algorithm and 'create_trainmodel.py'
  • CORK returns the discriminative subgraphs such as 'Train_Cutoff4_CORKMAX_n2.subg' in 'train\model_1' folder
  • 'create_trainmodel.py' tranform its type to some files: face graps, matrix of subgraphs
  • Chen's dataset is in 'train\model_1\label' and our dataset is in 'train\model_1\label'

About

Discriminative Subgraphs for Discovering Family Photos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%