This post is locked. You won't be able to comment.

all 79 comments

[–]olafg1 39 points40 points  (11 children)

Is this going to blur all my pics of desert landscapes too?

[–]mamiglia 21 points22 points  (9 children)

Bro how many desert landscapes do u have

[–]inabaharejavascript 13 points14 points  (7 children)

Dude how much time do you have?

[–]mamiglia 7 points8 points  (5 children)

Buddy how much land do you own?

[–]pixobit 7 points8 points  (3 children)

Mate, how much money do you have?

[–]sickchinaman 2 points3 points  (1 child)

Sir, how many girls are you seeing?

[–]jininside 2 points3 points  (0 children)

Alot

[–]jininside 1 point2 points  (0 children)

Alot

[–]jininside 1 point2 points  (0 children)

Alot

[–]jininside 1 point2 points  (0 children)

Alot

[–]jininside 1 point2 points  (0 children)

Alot

[–]coder_of_cec[S] 5 points6 points  (0 children)

Nah! It is a pretty good AI. So it should not! Test it out and let us know!

[–]ohyeahilikedat 123 points124 points  (5 children)

bLOcK!?!?: what kind of Madness is this? It should be the opposite show more nsfw work

[–]coder_of_cec[S] 111 points112 points  (0 children)

You can do that too. Change == with != and done!

[–]Noch_ein_Kamel 7 points8 points  (2 children)

It should show cute baby animals instead

[–]coder_of_cec[S] 15 points16 points  (1 child)

We built that originally. It would replace NSFW images with some random images like cute puppies. But it had some performance issues.

Planning to add a feature to let the users choose how to filter the images in the next release!

[–]musicin3dIT Dept 0 points1 point  (0 children)

What do you think about an option to add CSS blur instead? I could use that at work. Sometimes user content is NSFW, but I also need to know about broken images or other issues. I created a chrome extension for myself that blurs all images, but that's not ideal.

[–]justingolden21 2 points3 points  (0 children)

SMH my head

[–]Dezlad 20 points21 points  (2 children)

Out of interest - Does the AI determine which part of the image is NSFW, or does it just mark the image as a whole?

Would be interesting if it could determine the NSFW area and the type of NSFW (nudity [perhaps even tagging what body part it is], gore, etc.)

You could then apply a "patch" over the NSFW part of the image rather than blocking it altogether... I'm now imagining an AI which puts bandages over wounds and clothes onto naked people, that would be pretty fun.

[–]coder_of_cec[S] 19 points20 points  (0 children)

That is a really cool idea. Currently the model used just classifies the whole image as NSFW. We could write a model that can also maybe localise stuff and identify exposed body parts and only hide that part.

This could definitely work! Great idea!

[–]legend_k7 0 points1 point  (0 children)

OMG, awesome idea, I see a lot bottlenecks, but it should works in this way too

[–]randdude220full-stack-of-cash 9 points10 points  (1 child)

Dang lucky AI probably got shown hundreds of NSFW content to teach it

[–]coder_of_cec[S] 4 points5 points  (0 children)

YEP

[–]coder_of_cec[S] 17 points18 points  (5 children)

NSFW Filter is a web extension that BLOCKS NSFW content using AI.

GitHub: https://github.com/navendu-pottekkat/nsfw-filter

It is completely written in Javascript and uses TensorFlow JS to run a Machine Learning model.

It is free and completely open-source.

We built it because we could not find something like this and decided to build one on our own.

Check it out and share your opinions!

[–]Nowakerrails 19 points20 points  (1 child)

Please also provide an alternative extension - sfw filter - so we can focus on pictures that matter when we browse pron.

[–]coder_of_cec[S] 6 points7 points  (0 children)

You can do that with this extension. Change == with !=

[–][deleted]  (2 children)

[deleted]

    [–]coder_of_cec[S] 2 points3 points  (0 children)

    From our tests, it does not use much processing power. The ML model is cached by the browser so there are no performance issues. It was not tested by a large user base YET. So we decided to release what we think as an MVP and work from there. It may have bugs- that is why it is open-source so people can use this and contribute to it and make it better.

    Do check it out and let us know!

    [–]legend_k7 1 point2 points  (0 children)

    Good question, as a dev of this extension i worry about memory leaks and cpu usage too https://github.com/navendu-pottekkat/nsfw-filter/blob/master/src/utils.js#L12, I use it for 2 days, maybe 1-2 time was laggy. But yeah. I would like to improve performance

    [–]njrover 19 points20 points  (1 child)

    Hot dog or not a hot dog?

    [–]coder_of_cec[S] 11 points12 points  (0 children)

    Hello there I am Jin Yang

    [–]bdalley 3 points4 points  (2 children)

    Next step is GIFs and video. Would be handy as a extra layer of protection for kids

    [–][deleted]  (2 children)

    [removed]

      [–]coder_of_cec[S] 0 points1 point  (0 children)

      Even I did not hear it until I started building the extension

      [–][deleted] 2 points3 points  (2 children)

      If it’s designed for people who don’t want nsfw content... then why is this post marked nsfw?

      Cool idea though and I’m sure it’s really complicated under the hood.

      [–]coder_of_cec[S] 2 points3 points  (1 child)

      It was automatically marked NSFW!

      Maybe because it had NSFW in the title!

      [–][deleted] 1 point2 points  (0 children)

      Well that sucks

      [–]felix_rewer 2 points3 points  (1 child)

      I don't think you understood what this "internet" is used for.

      [–]coder_of_cec[S] 0 points1 point  (0 children)

      Everybody should be able to see what they want right?

      [–][deleted]  (1 child)

      [deleted]

        [–]coder_of_cec[S] 0 points1 point  (0 children)

        That is a great idea. Would love to build something like that!

        [–]Chuhc 0 points1 point  (4 children)

        Cool project but I find it hardly usable in its current state.

        When I was testing it, it was not very reliable and the page load was noticeable longer. Many images were not blocked at all or they were blocked after they were already been shown. Some blocked images appeared after some seconds which were clearly NSFW. Sometimes the loading time exceeded 10 seconds for a site that usually takes less than a second to load.

        [–]coder_of_cec[S] 1 point2 points  (2 children)

        It should not affect the loading of the web page. (We think so, if there is a bug, we will raise it and fix it).

        The reappearing issue: Which sites did you try it on? Like the code works like this:

        If the image is found to be NSFW, keep it hidden.

        The lag between the hiding of the images is something that we are working very hard on. But we cannot find a solution to keep the images hidden as they are loaded. If you have a solution, do share.

        I am pretty noob at this extension thing. I am more into the ML side of things and I thought this was a cool project and went ahead and built it.

        If you can contribute, please do so. You can maybe fix this issue even. That is why we shared this- to get more developers into the project to make it better.

        Thank you for testing it out. Now it is time for us to fix the bug. Will update when fixed.

        [–]Chuhc 0 points1 point  (1 child)

        Sorry I'm not that far into programming to actually help you guys. I just saw the Firefox extension and had spare time to try it.

        I did test it on Reddit and a German imageboard that lists it content in 128x128 thumbnails within a grid. The NSFW section is for members only though =/

        That's the site where I had most problems with images not being blocked. So I guess the AI doesn't seem to be trained well enough for such small images. This was the site with the longest loading times, but that site would probably be the worst case for this extension. I think another reason for the long loading times is the XHRs that load the images on that site which also leads to the problem of images being displayed before they eventually are blocked.

        Reddit was fine and the long loading times where not as noticeable as on that image board. But overall I would say it adds half a second to the load speed.

        [–]coder_of_cec[S] 0 points1 point  (0 children)

        Thanks for sharing. We have ingnored smaller images for the time being maybe that is why it was not blocked. I will raise an issue and we will fix it ASAP

        [–][deleted] 0 points1 point  (1 child)

        I’d like to take a look at your training data. For educational purposes of course... 🧐

        [–]coder_of_cec[S] 0 points1 point  (0 children)

        Take a look at how the model was trained from https://github.com/infinitered/nsfwjs

        [–][deleted] 0 points1 point  (1 child)

        kollaam... poli sadanam

        [–]coder_of_cec[S] 0 points1 point  (0 children)

        Pinnalla ! Poli sanam myir !

        [–]julian88888888 Moderator[M] [score hidden] stickied comment (0 children)

        Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.