{"action":"created","issue":{"url":"https://api.github.com/repos/habrman/FaceRecognition/issues/6","repository_url":"https://api.github.com/repos/habrman/FaceRecognition","labels_url":"https://api.github.com/repos/habrman/FaceRecognition/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/habrman/FaceRecognition/issues/6/comments","events_url":"https://api.github.com/repos/habrman/FaceRecognition/issues/6/events","html_url":"https://github.com/habrman/FaceRecognition/issues/6","id":324880625,"number":6,"title":"How to add UNknown label for untrained images","user":{"login":"guruvishnuvardan","id":31349523,"avatar_url":"https://avatars0.githubusercontent.com/u/31349523?v=4","gravatar_id":"","url":"https://api.github.com/users/guruvishnuvardan","html_url":"https://github.com/guruvishnuvardan","followers_url":"https://api.github.com/users/guruvishnuvardan/followers","following_url":"https://api.github.com/users/guruvishnuvardan/following{/other_user}","gists_url":"https://api.github.com/users/guruvishnuvardan/gists{/gist_id}","starred_url":"https://api.github.com/users/guruvishnuvardan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guruvishnuvardan/subscriptions","organizations_url":"https://api.github.com/users/guruvishnuvardan/orgs","repos_url":"https://api.github.com/users/guruvishnuvardan/repos","events_url":"https://api.github.com/users/guruvishnuvardan/events{/privacy}","received_events_url":"https://api.github.com/users/guruvishnuvardan/received_events","type":"User","site_admin":false},"labels":[{"id":633771745,"url":"https://api.github.com/repos/habrman/FaceRecognition/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true},{"id":633771747,"url":"https://api.github.com/repos/habrman/FaceRecognition/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-21T11:21:11Z","updated_at":"2018-05-27T17:45:10Z","closed_at":null,"author_association":"NONE","body":"HI,\r\n\r\nI am using this code to identify unknown faces that are not trained, so Can you please let me know, where to add \"Unknown\" label, so that I can take screen shot of those unknown persons to train later.\r\n\r\nThanks\r\nGuru"},"comment":{"url":"https://api.github.com/repos/habrman/FaceRecognition/issues/comments/392350371","html_url":"https://github.com/habrman/FaceRecognition/issues/6#issuecomment-392350371","issue_url":"https://api.github.com/repos/habrman/FaceRecognition/issues/6","id":392350371,"user":{"login":"habrman","id":5381652,"avatar_url":"https://avatars1.githubusercontent.com/u/5381652?v=4","gravatar_id":"","url":"https://api.github.com/users/habrman","html_url":"https://github.com/habrman","followers_url":"https://api.github.com/users/habrman/followers","following_url":"https://api.github.com/users/habrman/following{/other_user}","gists_url":"https://api.github.com/users/habrman/gists{/gist_id}","starred_url":"https://api.github.com/users/habrman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habrman/subscriptions","organizations_url":"https://api.github.com/users/habrman/orgs","repos_url":"https://api.github.com/users/habrman/repos","events_url":"https://api.github.com/users/habrman/events{/privacy}","received_events_url":"https://api.github.com/users/habrman/received_events","type":"User","site_admin":false},"created_at":"2018-05-27T17:45:10Z","updated_at":"2018-05-27T17:45:10Z","author_association":"OWNER","body":"Well the thing is that the networks are quite large so they take time. To speed thing up you could use [Haar Cascades from OpenCV](https://docs.opencv.org/3.4.1/d7/d8b/tutorial_py_face_detection.html) to find faces in the image. It's not as good but it should be faster than the network cascade I'm using now. You can't, however, get rid of the Inception Resnet which is a big network. Without thinking to much about it 3 possible solutions come to mind:\r\n\r\n1. If you don't need to run on all frames I would recommend just skipping some of them. If you really need the facial position and ID in all frames you could also add a tracker instead of re-identifying all faces in each frame. This is the simplest solution. \r\n\r\n2. Another way would be to run multiple instances of the network. If you have 4 instances of the network you could potentially increase the fps by a factor of 4 but you would still have a latency.\r\n\r\n3. Train your own network using a smaller architecture. As I mention in the README you can find the training code in this [repo](https://github.com/davidsandberg/facenet)."}}
{"actor":{"display_login":"habrman"}}