This Google Chrome extension uses Geacc pre-trained model (MobileNetV2) and TensorFlow.js to detect and block explicit images. All inference performed in browser.
Extension downloads the model on start. Once initialised, it blurs explicit images and automatically adds badge overlay containing prediction results to images on hover.
All images larger than 119px analysed. However, badges only displayed if the image loaded through <img>
tag. Sometimes it fails to add badge when there is some fancy js manipulation used on the page, or image loaded through data URI or CSS background style.
The extension also can collect URLs of misclassified images (currently only false positives) which can be used to improve the model.
npm i
npm run build
This command generates a dist/
folder which contains the build artifacts.
To load the extension to Google Chrome:
dist/
folder contentsWhen building for development and troubleshooting purposes, use the following command:
npm run build-dev
It disables uglify and minify steps so you can see readable code.
Google Images
Source code is licensed under Apache License 2.0