Live data from Hacker News

Decensoring Hentai with Deep Neural Networks

github.com

11–20 of 73 posts

Re: Decensoring Hentai with Deep Neural Networks

#11
post #3

Are there any more examples? Removing a few lines doesn't seem that impressive and can be done with the PhotoShop pattern tool without any fancy neural net.

More examples and commentary found here: https://boards.4chan.org/g/thread/68220714#p68220714 Edit: should have mentioned NSFW

[deleted]

Re: Decensoring Hentai with Deep Neural Networks

#12
post #10
post #8

Earlier quoted context omitted.

It's not clear to me that you'd actually need to manually label individual images for training. The work of detecting and marking the censored regions is left to the user, so the model just needs to be good at inpainting. There are probably enough specialized sites to get a decently-sized training set with little effort beyond writing a crawler.

You could be right, I don't know. Maybe the authors can tell us about their experience. My intuition is that the dataset will be too imbalanced to learn anything useful. Even if you crawl only decensored images, the area you truly care about inpainting is still pretty small. If you don't focus on it somehow, it might learn how to inpaint anime-style geometry correctly (from the rest of the image) but produce "barbie…

The demo in the repo only shows inpainting of anime-style geometry. In the 4chan thread linked by nathansmith, someone tried to apply it to a mosaicked penis, but it disappeared (NSFW, probably: https://i.4cdn.org/g/1540580868203.png). When they used the mosaic decensoring mode instead, it worked slightly better (NSFW, definitely: https://imgur.com/a/PwAunbc/). Other people complained about missing genitals as well.

So I'm guessing that this model doesn't have any specific training for filling in only genitals. I think there are category-aware inpainting algorithms that could be used, but they'd need tagged data, as you say.

Re: Decensoring Hentai with Deep Neural Networks

#15
post #8
post #5

I believe "Image Inpainting for Irregular Holes Using Partial Convolutions" has been superseded by "Free-Form Image Inpainting with Gated Convolution", especially for interactive use cases? https://arxiv.org/pdf/1806.03589.pdf http://jiahuiyu.com/deepfill2/ I think the most interesting part of this project would be generating the dataset. That is a lot of manual redrawing of vaginas/penises. Or the reverse, where you…

It's not clear to me that you'd actually need to manually label individual images for training. The work of detecting and marking the censored regions is left to the user, so the model just needs to be good at inpainting. There are probably enough specialized sites to get a decently-sized training set with little effort beyond writing a crawler.

I suggested that to deeppomf a while ago (I was thinking of simply using unlabeled anime images from https://gwern.net/Danbooru2017 with random area deletions to simplify the model & training process as much as possible) and his belief is that because genitals are such a small fraction of any images, and the rest of images vary so much while genitals are a fairly small narrow domain, a generic inpainting/denoising CNN will learn to inpaint pretty much anything else possible and neglect genitals specifically.

Presumably if you trained a really big inpainting CNN a lot, it would learn genitals (along with everything else), but it's understandable that he would try a much more targeted approach.

Re: Decensoring Hentai with Deep Neural Networks

#18

I wonder what will happen when neural networks can generate illegal content, like child pornography.

It will vary by country. In a lot of Europe and the US the content will still be illegal. In Japan it won’t be. At some point the issue is going to come down to what you want to spend manpower and money fighting, people who actually endanger and harm children, or people who use computers to emulate it. It might not be a very clear cut thing though, because I frankly wouldn’t be shocked to find out that the overlap between people who want pornography of real and simulated children is significant.

Where it might be a little more clear cut is feeding the market that clearly exists for “teen” porn, which is currently filled by 18+ actresses. I suspect a non-trivial percentage of the non-child-abusing population would consume simulated 16 year old porn without ever considering the real thing. In that case you might see some changes.

Reply edit It’s already outlawed. In the US for example pornographic drawings of children are outlawed. In the same way it’s illegal to try and sell cocaine stimulants, it’s illegal to try and sell child pornography simulations. I doubt the A.I. itself would be illegal, just its output.

Re: Decensoring Hentai with Deep Neural Networks

#19
I predict that the porn industry will be the first industry to suffer mass unemployment due to AI.

Phase I: Deep learning combined with realistic physics simulation will eventually replace human actors. At some point amateurs can record their movements, then use variational autoencoders to improve their features (bigger boobs, thinner waist, smooth skin) and replace professionals. This is 'Uber phase' for porn and drives down the wages.

Phase II: Eventually AI can mimic complete scenes and adjust the 'plot' to the current state of the observer. Tight sexual biofeedback loop will form.

Phase III: The rapture of the nerds. Fully interactive VR + toolset. In the context of the Fermi paradox, Phase III is the Great Filter.

----

https://en.wikipedia.org/wiki/Great_Filter

Re: Decensoring Hentai with Deep Neural Networks

#20
There should be NSFW examples in the Readme. I saw some practical (NSFW) examples on 4chan and it doesn't seem to work very well. Most hentai doesn't contain simple lines and blobs covering homogenous skin area. There is detail under those areas that the algorithm does not reproduce at all.
Post reply on HN