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
The Ultimate Stable Diffusion LoRA Guide (Downloading, Usage, Training)
LoRAs (Low-Rank Adaptations) are smaller files (anywhere from 1MB ~ 200MB) that you combine with an existing Stable Diffusion checkpoint models to ...
How to use negative prompts
You should reading the prompting guide before proceeding. This will give you an idea of where to find tags and how to use them effectively. What Ar...
How to run FLUX AI model for free (NSFW)
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,...
Advanced AI Hentai Prompting (Pony Diffusion)
All models on Betterwaifu.com are trained on Pony Diffusion XL. We call them PDXL models, to distinguish them from SDXL and SD1.5 models. Pony Diff...