Skip to content
Gopal Chand edited this page Dec 26, 2023 · 20 revisions

The Rotofy Wiki

Step by step guide using Stable Diffusion

Starting point

Let's start with the following image:  This 1980s photograph, taken within a Centers for Disease Control influenza testing laboratory, showed a laboratorian entering data into an influenza-specific database while seated at a computer workstation.

Upload into Stable Diffusion

version: [v1.7.0](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/cf2772fab0af5573da775e7437e6acdca424f26e)  •  python: 3.10.6  •  torch: 2.0.1+cu118  •  xformers: 0.0.20  •  gradio: 3.41.2

Options are --xformers --opt-sdp-attention --no-half-vae Model is https://civitai.com/models/133005/juggernaut-xl

Save the file and upload it into Stable Diffusion in the img2img tab

Run Image2Image in a Loop

The prompt is: woman working at a computer terminal

The negative prompt is: lores, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, extra arms, extra legs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers

Main parameters:

  • Sampling steps = 20 (default)
  • Width = 640
  • Height = 512
  • Batch count = 1 (default)
  • Batch size = 1 (default)
  • CFG Scale = 7 (default)
  • Denoising strength = 0.5
  • Seed = 217832897234 (you can use your own or use -1 to generate a new one)

Paramter settings main

  • Script = Loopback
  • Loops = 20
  • Final denoising strength = 0.75
  • Denoising strength curve = Aggressive
  • Append interrogated prompt at each iteration = CLIP

Paramter settings for loopback script

Hit generate and find the results folder for Stable Diffusion for today's day: stable-diffusion-webui\outputs\img2img-images\YYYY-MM-DD

List of PNG images from the Stable Diffusion output folder

Process the resulting files

exiftool (https://exiftool.org/) and ffmpeg (https://ffmpeg.org/) must be installed. Ensure that the directories for the binaries are in the PATH: exiftool.exe and ffmpeg.exe (use this for assistance: https://www.computerhope.com/issues/ch000549.htm#windows10)

Check that exiftool.exe and ffmpeg.exe can be run from a command prompt.

Copy the relevant files to another folder and then enter the following in a command prompt: git clone https://github.com/gopalchand/Rotofy python Rotofy/rotofy.py --annotate --framerate 1

The resulting movie file can now be viewed.

Example frame showing annotation

Clone this wiki locally