Skip to content

u/Sixhaunt

In this archive from Jul 2018 to Dec 2026

75
posts
616
comments
195
media
17k
score
12 saved before deletion

Top posts

Top comments

u/MrBeforeMyTime sent me a good video to use as the driver for the image and we have been discussing it during development so shoutout to him.

The idea behind this is to be able to use a single photo of a person that you generated, and create a number of new photos from new angles and with new expressions so that it can be used to train a model. That way you can consistently generate a specific non-existent person to get around issues of using celebrities for comics and stories.

The process I used here was :

  1. use Thin-Plate-Spline-Motion-Model to animate the base image with a driving video.
  2. upsize the result using video2X
  3. extract the frames and correct the faces using GFPGAN
  4. save the frames and optionally recombine them into a video like I did for the post

I'm going to try it with 4 different driving videos then I'll handpick good frames from all of them to train a new model with.

I have done this all on a google colab so I intend to release it once I've cleaned it up and touched it up more

​

edit: I'll post my google colab for it but keep in mind I just mashed together the google colabs for the various things that I mentioned above. It's not very optimized but it does the job and it's what I used for this video

https://colab.research.google.com/drive/11pf0SkMIhz-d5Lo-m7XakXrgVHhycWg6?usp=sharing

In the end you'll see the following files in google colab that you can download:

  • fixed.zip contains the 512x512 frames after being run through GFPGan
  • frames.zip contains the 512x512 frames before being run through GFPGan
  • out.mp4 contains the 512x512 video after being run through GFPGan (what you see in my post)
  • upsized.mp4 contains the 512x512 video before being run through GFPGan

keep in mind that if your clip is long, it can produce a ton of photos so downloading them might take a long time. If you just want the video at the end then that shouldnt be as big of a concern since you can just download the mp4

You can also view individual frames without downloading the entire zip by looking in the "frames" and "fixed" folders

​

edit2: check out some of the frames I picked out from animating the image: https://www.reddit.com/r/StableDiffusion/comments/ys5xhb/training_a_model_of_a_fictional_person_any_name/

I have 27 total which should be enough to train on.

210 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.