News for hackers. Stuff that matters.
Re:Some notes on the Stable Diffusion safety filter by netruk44 on Friday November 18, 2022 @12:07PM (#33657790)
That'll only work for a little while longer (for future models, obviously the cat's out of the bag for the current version of stable diffusion), right up until the point where they incorporate the filter into the training process.

At which point, the end model users get to download will be incapable of producing anything that comes close to triggering the filter, and there will be no way to work around it short of training/fine-tuning your own model, which is prohibitively expensive for 'normal' people, even people with top-of-the-line graphics cards like a 4090.

Re:Some notes on the Stable Diffusion safety filter by Animats on Friday November 18, 2022 @12:28PM (#33658194)
That problem is being solved. Pornhub now has an AI R&D unit.[1] Their current project is to upscale and colorize out of copyright vintage porn. As a training set, they use modern porn. They point out that they have access to a big training set.

Next step, porn generation.

[1] https://www.pornhub.com/art/remastured

Re:Some notes on the Stable Diffusion safety filter by sillysaurusx on Friday November 18, 2022 @01:17PM (#33659186)
For a glimpse at what’s possible:

https://www.reddit.com/r/unstablediffusion

https://www.reddit.com/r/aiwaifu

I’ve been trying to generate tentacle porn since 2019 or so. It’s the whole reason I got into AI. We’re finally there, and it only took three years.

Can’t wait to see what 2026 brings. http://n.actionsack.com/pic/media%2FFh08F_hXkAAhalt.jpg

Re:Some notes on the Stable Diffusion safety filter by GuB-42 on Friday November 18, 2022 @02:49PM (#33661013)
> https://www.reddit.com/r/unstablediffusion

This subreddit was banned due to a violation of Reddit's rules against non-consensual intimate media.

Interesting. Why "non-consensual"? Does it mean Stable Diffusion generated porn of people who actually exist?

Re:Some notes on the Stable Diffusion safety filter by emmelaich on Friday November 18, 2022 @03:41PM (#33661803)
unstable_diffusion is still around. Note the underscore.
Re:Some notes on the Stable Diffusion safety filter by sbierwagen on Friday November 18, 2022 @03:00PM (#33661177)
Yes, reddit routinely bans deepfake subreddits. In practice, this means any net that can produce output that looks like any living person is banned.
Re:Some notes on the Stable Diffusion safety filter by sillysaurusx on Friday November 18, 2022 @03:53PM (#33661998)
Sorry all, I was typing it on my phone and missed an underscore. Here’s the proper link:

https://www.reddit.com/r/unstable_diffusion

Re:Some notes on the Stable Diffusion safety filter by pessimizer on Friday November 18, 2022 @04:25PM (#33662471)
> Their current project is to upscale and colorize out of copyright vintage porn.

But not very well. I collect this stuff and I have my own copies, so I can tell you that this doesn't look better than the b/w originals in quality/detail, and it's easy to see that the color is not great, especially if there are lots of hard lights and shadows dancing around.

That being said, I don't know why it's not working. Seems like it should work. I'd expect it to at least be clean of scratches and stabilized. Any relevant papers I should read about AI restoration of old film?

Re:Some notes on the Stable Diffusion safety filter by pifm_guy on Friday November 18, 2022 @12:21PM (#33658070)
Fine-tuning is pretty cheap compared to the original training run - perhaps just 1% of the cost.

Totally within reach of a consortium of.... "entertainment specialists".

Re:Some notes on the Stable Diffusion safety filter by netruk44 on Friday November 18, 2022 @12:27PM (#33658184)
I know a person who fine-tuned stable diffusion, and he said it took 2 weeks of 8xA100 80 GB training time, costing him somewhere between $500-$700 (he got a pretty big discount, too, at today's prices for peer GPU rental it would be over $1,000).

Sure, it's peanuts compared to what it must have cost to train stable diffusion from scratch. However, I think most normal people would not consider spending $500 to fine-tune one of these.

Re:Some notes on the Stable Diffusion safety filter by cookingrobot on Friday November 18, 2022 @12:32PM (#33658285)
You can fine tune stable diffusion for $10 using this service: https://www.strmr.com/

It works super well for putting yourself in the images, the likeness is fantastic.

It’s obviously a small training process, they only take 20 images, but it works.

Re:Some notes on the Stable Diffusion safety filter by minimaxir on Friday November 18, 2022 @12:32PM (#33658271)
For spot-finetuning with Dreambooth (not as good as full-finetuning but can get a specific subject/style much faster), it can be done with about $0.08 of GPU compute, although optimizing it is harder.

https://huggingface.co/docs/diffusers/training/dreambooth

Re:Some notes on the Stable Diffusion safety filter by netruk44 on Friday November 18, 2022 @12:39PM (#33658439)
Are these services using textual-inversion? If so, I have to wonder how well they would work on a stable diffusion model that was trained with the filter in place from the start, so that it couldn't generate anything close to the filter.

As it is right now, stable diffusion can generate adult imagery by itself, however it seems like it's been fine-tuned after the fact to try to 'cover up' that fact as much as they could before releasing the model publicly.

Re:Some notes on the Stable Diffusion safety filter by gpderetta on Friday November 18, 2022 @12:42PM (#33658495)
As far as I understand textual inversion != Dreambooth != Actual fine-tuning
Re:Some notes on the Stable Diffusion safety filter by seaal on Friday November 18, 2022 @01:00PM (#33658857)
I believe the safety filter is trivial to disable since it was added in one of the last commits prior to Stable Diffusion’s public release and not baked into the model, therefore most forks just remove the safety checker code [1]

As far as textual inversion, JoePenna’s Dreambooth [2] implementation uses Textual Inversion.

[1] https://github.com/CompVis/stable-diffusion/commit/a6e2f3b12... [2] https://github.com/JoePenna/Dreambooth-Stable-Diffusion

Re:Some notes on the Stable Diffusion safety filter by TaylorAlexander on Friday November 18, 2022 @01:00PM (#33658863)
This prediction doesn’t track with what is already happening. Dreambooth is allowing all kinds of people to fine tune their own models at home with nvidia graphics cards, and people are sharing all kinds of updated models that do really well at specific art styles or with NSFW subjects. Go check the nsfw subreddit unstable_diffusion for examples. It seems lots of people are training nsfw models with their own preferred data sets and last I saw someone merged all those checkpoints together in to one model.

So if I made a prediction it would be that the training sets for open models from big companies will get scrubbed of nsfw content and then nerds on Reddit will just release their own versions with it added in, and the big companies will make sure everyone knows they didn’t add that stuff and that’s where it will stand.

Re:Some notes on the Stable Diffusion safety filter by netruk44 on Friday November 18, 2022 @01:08PM (#33658995)
I agree with your prediction. Sorry, I was unclear in my post, and left that part unsaid. I agree that it will likely just be the big newly released 'base' models that will be scrubbed of NSFW images, but there's really no way to prevent these models from making those kinds of images at all.

It will only take some dedicated individuals, which I know there is no shortage of.

Re:Some notes on the Stable Diffusion safety filter by langitbiru on Friday November 18, 2022 @01:24PM (#33659324)
The AI-generated art with Dreambooth works only for avatar type pics. It cannot create fancy gestures (doing a complicated movement with hands, like patting a cat). For now.
Re:Some notes on the Stable Diffusion safety filter by ben_w on Friday November 18, 2022 @02:47PM (#33660975)
Training's only prohibitively expensive for normal people today, and the dollar cost per compute operation is still decreasing fairly rapidly.
Re:Some notes on the Stable Diffusion safety filter by xtagon on Friday November 18, 2022 @09:50PM (#33666285)
This (training a model with no NSFW content) would be preferable to me. No false positives to worry about. People who do want to generate NSFW stuff can fine-tune or train their own model, nobody owes that functionality to them in freely available ones.