How to make NSFW AI Stable Diffusion animations and GIFs [AnimateDiff Hentai Tutorial]
By gerogero
Updated: July 7, 2024
Introduction
Animatediff is the most well known animation extension for Stable Diffusion, responsible for most NSFW GIFs you’ll see floating around.
You must already have AUTOMATIC1111 installed to use it (ComfyUI will work too but that’s beyond the scope of this tutorial)
Here’s an example of the type of work you’ll be able to produce by following this tutorial:
How to install:
- Click on the Extensions tab in A1111, then slick on Available subtab
- Click the big orange “Load from:” button
- In the searchbar search for “AnimateDiff”
- When the row appears, click Install
Download these motion modules, which are models that are responsible for applying the motion to the image:
You want the following 2 files: “mm_sd_v14.ckpt” and “mm_sd_v15_v2.ckpt”
move downloaded files to “StableDiffusion Direcotry\extensions\sd-webui-animatediff\model”
close and restart “webui-user” then we can see AnimateDiff panel
How to use
The simplest way to make an animation is
- write prompt as generating image, set width, height to 512
- select one motion module (select mm_sd_v15_v2)
- turn on Enable AnimateDiff and MP4
- set Number of frames to 32, FPS to 16 and click Generate button :)
After finish you can find MP4 file at StableDiffusion\outputs\txt2img-images\AnimateDiff
( ComfyUI User:ComfyUI AnimateDiff Workflow )
Optimal parameters
Here are parameters I usually set for better results
—————————————————————————————-
“Number of frames“:Animation length, I set to 30
“FPS“:Frames Per Second, play speed, I set to 30 (or lower)
then generate 30/30=1 second animation
—————————————————————————————-
Extend Animation Length (optional)
Since a 1 second animation is not enough, we’ll need to extend it.
we require to install ”Deforum“ (for extend animation length)
search “Deforum” in extension and install “deforum-for-automatic1111-webui”
close and restart webui-user, then we can go on
—————————————————————————————-
”Frame Interpolation“: SlowDown Switch, set to “FILM” (turn on)
only after install deforum, this can work
”Interp X“:SlowDown Multiplier, set to 10
then slow down 10 times, get 30/30×10=10 seconds animation
Then the animation is Long enough
other options can use default
A Beginner Can End Here
Troubleshooting
1. If the animation changed in the middle, then go to “Setting” panel, check on “Pad prompt/negative prompt to be same length” option in “Optimizations”
2. AnimateDiff is conflict with ADetailer, if you have to use adetailer, you need to close and restart webui-user.bat after once generation
3. Model “mm_sd_v15v2.ckpt” seems to exist issue, sometimes “mm_sd_v14.ckpt” can generate better result. there’s stable version model which can reduce the animation’s variety
4. Better generate less than 512×768 animation, otherwise errors will occur, it’s model issue regardless of VRAM
Related Posts
[Tutorial] How to run FLUX.1 AI model for free (NSFW friendly)
In August 2024, a team of ex-Stability AI developers announced the formation of Black Forest Labs, and the release of their first AI model, FLUX.1,...
Pony Diffusion XL Complete Beginner’s Guide (NSFW Focus)
Optimal settings for Pony Diffusion XL: Settings I use Triggers: You can see the triggers in the area with model information. Generally, I add...
Stable Diffusion NSFW- Advanced Prompt Techniques
Introduction Hi there! Here are some notes about how I structure your prompts to get better hentai generations. This guide is the result of persona...
[Tutorial] Stable Diffusion Nudify (Clothing to Nude)
You should already have Automatic1111 installed and updated. Check the beginner’s guide if not.You will need the following models to follow a...