Giter VIP home page Giter VIP logo

Comments (8)

bedapudi6788 avatar bedapudi6788 commented on September 18, 2024 1

@lolsatdanger It is certainly possible and is relatively easy to get it running in-browser. This is certainly on my to-do list. Currently I am very stretched for time, but I will definitely add tensorflow js version of this when i get some time.

from nudenet.

vladmandic avatar vladmandic commented on September 18, 2024 1

i have it working with tfjs in browser without issues.
see issue #54 for discussion on the topic.

from nudenet.

lolsatdanger avatar lolsatdanger commented on September 18, 2024

Awesome! I'm glad to hear that it is on your list. I was not familiar with tensorflow js, but looking up that github now, it seems great. I look forward to it when you have the time!

from nudenet.

wingman-jr-addon avatar wingman-jr-addon commented on September 18, 2024

You might find my project to be helpful for providing a bit of the backbone: https://github.com/wingman-jr-addon/wingman_jr
That one hooks image requests via filterResponseData, so it is Firefox only.

Or you might find the Purify.ai plugin to be a good starting base:
https://github.com/purify-ai/geacc-crx

I think that a different use case for such a plugin would involve censoring only certain parts due to sensitivity and cultural norms - I don't think fetishes would have to be the only use case here.

from nudenet.

nn12343456 avatar nn12343456 commented on September 18, 2024

Hello,

I had a go at this myself using wingman-jr and tfjs-converter. I was able to replace the original model with NudeNet's model but I couldn't convert the detector model because it seems to use layers that aren't supported by tfjs (resnet?). Both classifier models have similar performance on my machine.

Side question: Would a browser extension be capable of running using multithreading?

That exhausts my understanding of ML. Maybe a tfjs version of the detector needs training from scratch?

from nudenet.

bedapudi6788 avatar bedapudi6788 commented on September 18, 2024

@nn12343456 I am currently working on a new version of the detector. I am planning to use https://github.com/faustomorales/retinanetjs as a starting point for the js version.

from nudenet.

wingman-jr-addon avatar wingman-jr-addon commented on September 18, 2024

@nn12343456 Fascinating! Yes, I imagine you might run into layers not supported by TF.js. They are adding support for different layers relatively frequently, so definitely keep an eye on new versions.
Regarding multi-threading, the answer is yes, but with some caveats. Generally speaking you use "web workers" to get processing in the background, and they act more similarly to processes with pipes than threads if you ask me. However, plugins using WebExtensions cannot use web workers (at least in the main background processing script), but might be able to in the content scripts. I'm curious - when you want do multithreading are you more looking at the GPU or CPU part of the workload?
Perhaps @bedapudi6788 's approach using retinanetjs will already handle the threading concerns?

from nudenet.

ddddddssssssssss avatar ddddddssssssssss commented on September 18, 2024

Im curious how did the project end ornhows going. There is no mention of brownser support afterwards, but the only use for NudeNet for me is to block stuff on brownsers

from nudenet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.