News for hackers. Stuff that matters.
Re:Show HN: I’m not a data scientist but made a Covid mask d... by will-wow on Thursday December 03, 2020 @12:07PM (#25291223)
I used Google's AutoML Vision service (https://cloud.google.com/vision) to train the model off of pictures of masked and unmasked faces from coworkers and creative commons images from Flickr, and am running the model in-brower in a React app. It was pretty cool to see how easy it was to set up an object detection model without having to figure out how to set it up with Keras or something.
Re:Show HN: I’m not a data scientist but made a Covid mask d... by MH15 on Friday December 04, 2020 @10:37AM (#25303411)
I recently built a similar system for HackOHI/O, my college's hackathon. Was a great challenge! We used a slightly different approach, as we didn't have the time or expertise to train our own models.
Re:Show HN: I’m not a data scientist but made a Covid mask d... by will-wow on Friday December 04, 2020 @01:21PM (#25305801)
Oh cool! Was it also a mask detector, and if so did you find a pre-trained model for it?
Re:Show HN: I’m not a data scientist but made a Covid mask d... by RAB1138 on Thursday December 03, 2020 @04:33PM (#25295396)
Can you provide more details about how you're running them model in-browser?
Re:Show HN: I’m not a data scientist but made a Covid mask d... by will-wow on Thursday December 03, 2020 @05:07PM (#25295860)
Yeah! AutoML lets you export a TensorFlow.js version of the model to Google cloud storage, and there's a frontend library, tfjs-automl (https://github.com/tensorflow/tfjs/tree/master/tfjs-automl), that downloads the model and sets it up for detections.

Then I'm connecting to the device's webcam with navigator.mediaDevices.getUserMedia, and twice a second send a reference to the video stream object to the detector, which runs inferences locally and returns the coordinates of any detected objects.

There's some glue code to do the whole dance to connect to the camera and model, but after that it works pretty seamlessly, on my desktop and mobile browsers

Re:Show HN: I’m not a data scientist but made a Covid mask d... by fox_hedgehog on Thursday December 03, 2020 @12:30PM (#25291621)
Dr. Masky FTW :)