38 | 39 |
Select your photo
43 |├── docs ├── model │ ├── emotion │ │ ├── group1-shard1of1 │ │ ├── group2-shard1of1 │ │ ├── group3-shard1of1 │ │ ├── group4-shard1of1 │ │ ├── group5-shard1of1 │ │ ├── group6-shard1of1 │ │ ├── group7-shard1of1 │ │ ├── group8-shard1of1 │ │ ├── group9-shard1of1 │ │ ├── group10-shard1of1 │ │ ├── group11-shard1of1 │ │ ├── group12-shard1of1 │ │ ├── group13-shard1of1 │ │ ├── group14-shard1of1 │ │ ├── group15-shard1of1 │ │ ├── group16-shard1of1 │ │ ├── group17-shard1of1 │ │ ├── group18-shard1of1 │ │ ├── group19-shard1of1 │ │ ├── group20-shard1of1 │ │ ├── group21-shard1of1 │ │ ├── group22-shard1of1 │ │ ├── group23-shard1of1 │ │ ├── group24-shard1of1 │ │ ├── group25-shard1of1 │ │ ├── group26-shard1of1 │ │ ├── group27-shard1of1 │ │ ├── group28-shard1of1 │ │ ├── group29-shard1of1 │ │ ├── group30-shard1of1 │ │ ├── group31-shard1of1 │ │ ├── group32-shard1of1 │ │ ├── group33-shard1of1 │ │ ├── group34-shard1of1 │ │ ├── group35-shard1of1 │ │ ├── group36-shard1of1 │ │ ├── group37-shard1of1 │ │ ├── group38-shard1of1 │ │ ├── group39-shard1of1 │ │ ├── group40-shard1of1 │ │ ├── group41-shard1of1 │ │ ├── group42-shard1of1 │ │ ├── group43-shard1of1 │ │ ├── group44-shard1of1 │ │ ├── group45-shard1of1 │ │ ├── group46-shard1of1 │ │ ├── group47-shard1of1 │ │ ├── group48-shard1of1 │ │ ├── group49-shard1of1 │ │ ├── group50-shard1of1 │ │ ├── group51-shard1of1 │ │ ├── group52-shard1of1 │ │ ├── group53-shard1of1 │ │ ├── group54-shard1of1 │ │ ├── group55-shard1of1 │ │ └── model.json │ ├── gender │ │ ├── group1-shard1of1 │ │ ├── group10-shard1of1 │ │ ├── group11-shard1of1 │ │ ├── group12-shard1of1 │ │ ├── group13-shard1of1 │ │ ├── group14-shard1of1 │ │ ├── group15-shard1of1 │ │ ├── group16-shard1of1 │ │ ├── group17-shard1of1 │ │ ├── group18-shard1of1 │ │ ├── group19-shard1of1 │ │ ├── group2-shard1of1 │ │ ├── group20-shard1of1 │ │ ├── group21-shard1of1 │ │ ├── group22-shard1of1 │ │ ├── group23-shard1of1 │ │ ├── group24-shard1of1 │ │ ├── group25-shard1of1 │ │ ├── group26-shard1of1 │ │ ├── group27-shard1of1 │ │ ├── group28-shard1of1 │ │ ├── group29-shard1of1 │ │ ├── group3-shard1of1 │ │ ├── group30-shard1of1 │ │ ├── group31-shard1of1 │ │ ├── group32-shard1of1 │ │ ├── group33-shard1of1 │ │ ├── group34-shard1of1 │ │ ├── group35-shard1of1 │ │ ├── group36-shard1of1 │ │ ├── group37-shard1of1 │ │ ├── group38-shard1of1 │ │ ├── group39-shard1of1 │ │ ├── group4-shard1of1 │ │ ├── group40-shard1of1 │ │ ├── group41-shard1of1 │ │ ├── group42-shard1of1 │ │ ├── group43-shard1of1 │ │ ├── group44-shard1of1 │ │ ├── group45-shard1of1 │ │ ├── group46-shard1of1 │ │ ├── group47-shard1of1 │ │ ├── group48-shard1of1 │ │ ├── group49-shard1of1 │ │ ├── group5-shard1of1 │ │ ├── group50-shard1of1 │ │ ├── group51-shard1of1 │ │ ├── group52-shard1of1 │ │ ├── group53-shard1of1 │ │ ├── group54-shard1of1 │ │ ├── group55-shard1of1 │ │ ├── group6-shard1of1 │ │ ├── group7-shard1of1 │ │ ├── group8-shard1of1 │ │ └── group9-shard1of1 │ └── emotion_space │ │ ├── encModel.weights.bin │ │ └── encModel.json ├── images │ └── face_classification_og.png ├── js │ ├── util.js │ ├── model_gender.js │ ├── model_emotion.js │ ├── video.js │ ├── webcam.js │ ├── index.js │ └── tracking-min.js ├── css │ └── style.css ├── webcam.html ├── video.html ├── index.html └── emotion_tensorspace.html ├── .gitignore ├── LICENSE └── README.md /docs/model/emotion/group1-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group1-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group2-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group2-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group3-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group3-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group4-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group4-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group5-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group5-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group6-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group6-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group7-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group7-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group8-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group8-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group9-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group9-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group1-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group1-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group10-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group10-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group11-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group11-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group12-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group12-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group13-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group13-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group14-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group14-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group15-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group15-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group16-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group16-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group17-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group17-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group18-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group18-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group19-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group19-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group2-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group2-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group20-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group20-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group21-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group21-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group22-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group22-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group23-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group23-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group24-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group24-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group25-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group25-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group26-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group26-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group27-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group27-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group28-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group28-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group29-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group29-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group3-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group3-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group30-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group30-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group31-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group31-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group32-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group32-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group33-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group33-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group34-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group34-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group35-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group35-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group36-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group36-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group37-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group37-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group38-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group38-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group39-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group39-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group4-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group4-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group40-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group40-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group41-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group41-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group42-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group42-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group43-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group43-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group44-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group44-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group45-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group45-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group46-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group46-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group47-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group47-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group48-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group48-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group49-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group49-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group5-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group5-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group50-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group50-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group51-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group51-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group52-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group52-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group53-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group53-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group54-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group54-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group55-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group55-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group6-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group6-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group7-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group7-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group8-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group8-shard1of1 -------------------------------------------------------------------------------- /docs/model/gender/group9-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/gender/group9-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group10-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group10-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group11-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group11-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group12-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group12-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group13-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group13-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group14-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group14-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group15-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group15-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group16-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group16-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group17-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group17-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group18-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group18-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group19-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group19-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group20-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group20-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group21-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group21-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group22-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group22-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group23-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group23-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group24-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group24-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group25-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group25-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group26-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group26-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group27-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group27-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group28-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group28-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group29-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group29-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group30-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group30-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group31-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group31-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group32-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group32-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group33-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group33-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group34-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group34-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group35-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group35-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group36-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group36-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group37-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group37-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group38-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group38-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group39-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group39-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group40-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group40-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group41-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group41-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group42-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group42-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group43-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group43-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group44-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group44-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group45-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group45-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group46-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group46-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group47-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group47-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group48-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group48-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group49-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group49-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group50-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group50-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group51-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group51-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group52-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group52-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group53-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group53-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group54-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group54-shard1of1 -------------------------------------------------------------------------------- /docs/model/emotion/group55-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion/group55-shard1of1 -------------------------------------------------------------------------------- /docs/images/face_classification_og.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/images/face_classification_og.png -------------------------------------------------------------------------------- /docs/model/emotion_space/encModel.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tupleblog/face-classification-js/HEAD/docs/model/emotion_space/encModel.weights.bin -------------------------------------------------------------------------------- /docs/js/util.js: -------------------------------------------------------------------------------- 1 | var LABEL_EMOTIONS = {0:'Angry', 1:'Disgust', 2:'Fear', 3:'Happy', 4:'Sad', 5:'Surprise', 6:'Neutral'}; 2 | var LABEL_GENDER = {0:'Woman', 1:'Man'}; 3 | 4 | function preprocess_input(im) { 5 | img = tf.fromPixels(im, 1).toFloat() 6 | offset = tf.scalar(255); 7 | x1 = tf.scalar(0.5); 8 | x2 = tf.scalar(2); 9 | normalized = img.div(offset).sub(x1).mul(x2); 10 | batched = normalized.reshape([1, 64, 64, 1]); 11 | 12 | return batched; 13 | } 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### macOS ### 2 | *.DS_Store 3 | .AppleDouble 4 | .LSOverride 5 | 6 | # Icon must end with two \r 7 | Icon 8 | 9 | # Thumbnails 10 | ._* 11 | 12 | # Files that might appear in the root of a volume 13 | .DocumentRevisions-V100 14 | .fseventsd 15 | .Spotlight-V100 16 | .TemporaryItems 17 | .Trashes 18 | .VolumeIcon.icns 19 | .com.apple.timemachine.donotpresent 20 | 21 | # Directories potentially created on remote AFP share 22 | .AppleDB 23 | .AppleDesktop 24 | Network Trash Folder 25 | Temporary Items 26 | .apdisk 27 | .tags 28 | -------------------------------------------------------------------------------- /docs/js/model_gender.js: -------------------------------------------------------------------------------- 1 | var MODEL_GENDER; 2 | var IS_MODEL_GENDER_LOADED = false; 3 | initGender = async () => { 4 | MODEL_GENDER = await tf.loadModel("./model/gender/model.json"); 5 | console.log("Model Gender Loaded"); 6 | 7 | //Warm up network 8 | MODEL_GENDER.predict(tf.zeros([1, 64, 64, 1])); 9 | IS_MODEL_GENDER_LOADED = true 10 | M.toast({html: 'Model Gender Loaded.', displayLength: 1000}) 11 | }; 12 | 13 | initGender(); 14 | 15 | function predictGender(input) { 16 | var r = MODEL_GENDER.predict(input); 17 | var result = r.dataSync(); 18 | var tresult = tf.tensor(result) 19 | var label_index = tf.argMax(tresult).dataSync()[0] 20 | 21 | var label_percent = result[label_index].toFixed(4) * 100; 22 | 23 | return {"result": result, "label": LABEL_GENDER[label_index], "percent": label_percent}; 24 | } 25 | -------------------------------------------------------------------------------- /docs/js/model_emotion.js: -------------------------------------------------------------------------------- 1 | var MODEL_EMOTION; 2 | var IS_MODEL_EMOTION_LOADED = false; 3 | initEmotion = async () => { 4 | MODEL_EMOTION = await tf.loadModel("./model/emotion/model.json"); 5 | console.log("Model Emotion Loaded"); 6 | 7 | //Warm up network 8 | MODEL_EMOTION.predict(tf.zeros([1, 64, 64, 1])); 9 | IS_MODEL_EMOTION_LOADED = true; 10 | M.toast({html: 'Model Emotion Loaded.', displayLength: 1000}) 11 | }; 12 | 13 | initEmotion(); 14 | 15 | function predictEmotion(input) { 16 | var startTime = performance.now(); 17 | 18 | var r = MODEL_EMOTION.predict(input); 19 | var result = r.dataSync(); 20 | var tresult = tf.tensor(result) 21 | var label_index = tf.argMax(tresult).dataSync()[0] 22 | 23 | var label_percent = result[label_index].toFixed(4) * 100; 24 | 25 | var totalTime = performance.now() - startTime; 26 | //console.log('Predict Emotion Time: ' + Math.floor(totalTime)); 27 | 28 | return {"result": result, "label": LABEL_EMOTIONS[label_index], "percent": label_percent}; 29 | } 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 tupleblog 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # face-classification-js 2 | 3 | Repository for gender and emotion classification using [TensorFlow.js](https://js.tensorflow.org/). 4 | The original repository can be seen at [oarriaga/face_classification](https://github.com/oarriaga/face_classification). 5 | We train [MobileNet](https://www.tensorflow.org/api_docs/python/tf/keras/applications/MobileNet) 6 | to classify gender and emotion of the face based on FER2013 and IMDB datasets. 7 | The face tracking part is done by using [`trackingjs`](https://trackingjs.com/), 8 | lightweight JavaScript core for computer vision. 9 | 10 | You can see more details of analysis and examples on [tupleblog](https://tupleblog.github.io/). 11 | 12 | 13 | ## demo 14 | 15 | Try out the image classification demo at 16 | [tupleblog.github.io/face-classification-js](http://tupleblog.github.io/face-classification-js/). 17 | You can also try webcam real-time video classification on web browser at 18 | [tupleblog.github.io/face-classification-js/webcam.html](https://tupleblog.github.io/face-classification-js/webcam.html) 19 | 20 | 21 | ## contributors 22 | 23 | - [kittinan](https://github.com/kittinan) 24 | - [titipata](https://github.com/titipata) 25 | - [bluenex](https://github.com/bluenex/) 26 | 27 | from [tupleblog](https://tupleblog.github.io/) 28 | -------------------------------------------------------------------------------- /docs/css/style.css: -------------------------------------------------------------------------------- 1 | /* sticky footer */ 2 | * { 3 | margin: 0; 4 | } 5 | 6 | html, body { 7 | height: 100%; 8 | font-family: 'CMUSansSerifMedium', serif; 9 | } 10 | 11 | .wrapper { 12 | min-height: 100%; 13 | height: auto !important; 14 | height: 100%; 15 | margin: 0 auto -5em; 16 | } 17 | 18 | .footer, .push { 19 | height: 5em; 20 | color: rgba(255,255,255,0.8); 21 | } 22 | 23 | /* center footer */ 24 | .flex-container { 25 | display: flex; 26 | align-items: center; 27 | justify-content: center; 28 | } 29 | 30 | .flex-item { 31 | text-align: center; 32 | } 33 | 34 | /* images */ 35 | #card-item-container { 36 | visibility: hidden; 37 | } 38 | 39 | #image-container { 40 | position: relative; 41 | padding: 10px; 42 | } 43 | 44 | #show-img { 45 | max-width: 100%; 46 | } 47 | 48 | .face-frame { 49 | border: 2px solid #ff0000; 50 | position: absolute; 51 | } 52 | 53 | .canvas-face { 54 | display: none; 55 | } 56 | .chart-result-profile canvas { 57 | border-radius: 50px; 58 | } 59 | 60 | #head-container { 61 | font-size: 2.1rem; 62 | } 63 | 64 | #webcam { 65 | width: 100%; 66 | } 67 | #canvas_webcam { 68 | width: 100%; 69 | position: absolute; 70 | top: 10px; 71 | left: 10px; 72 | } 73 | #webcam_frame { 74 | width: 100%; 75 | position: absolute; 76 | top: 0; 77 | left: 0; 78 | border: 2px solid #ff0000; 79 | } 80 | #btn-share { 81 | display: none; 82 | } 83 | #btn-manual { 84 | display: none; 85 | } 86 | .cropper-modal { 87 | opacity: 0.05; 88 | } 89 | #main-container { 90 | font-family: Roboto, sans-serif; 91 | } 92 | 93 | @media only screen and (max-width: 992px) { 94 | #head-container { 95 | text-align: center; 96 | font-size: 1.8rem; 97 | } 98 | } 99 | 100 | @media only screen and (max-width: 640px) { 101 | #head-container { 102 | text-align: center; 103 | font-size: 1.5rem; 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /docs/webcam.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |Select your video
43 |Select your photo
43 |Select your photo
43 |=this.REGIONS_OVERLAP&&h/(f*(k/f))>=this.REGIONS_OVERLAP&&t.union(n,a)}}for(var u={},l=0;l