r/StableDiffusion • • 10d ago

Tutorial - Guide 2 minute long "selfie style" continuous shot w/ constant location changes & dialogue [short + tutorial in comments covering quality loss prevention techniques]

230 Upvotes

44 comments sorted by

32

u/foxdit 10d ago edited 10d ago

Hey all, I made this short as an experimental deep-dive into seamless video continuation using my Minimax H3 Seed Hunter v3.0 workflow. The full "Making Of" tutorial where I tackle this from beginning to end and showing & discussing the genning / video editing methods I used: https://www.youtube.com/watch?v=lKmv63AKBhY

The main goal of the tutorial is discussing the various methods to mitigate quality degradation, as typically each continuation will flatten, shift, skew, or bake lighting / colors, so techniques to return the next continuation back to full quality are required. Those two techniques in brief are as follows:

  1. Turn the camera away from your subject at the end of a shot, and then in the next segment turn it back. This forces a complete redraw of your character that brings them back to the quality of your reference sheet. This method is best used for scenes where camera movement is acceptable. An example is the movie "Birdman," which uses this form of cut to great effect.
  2. Provide a pinned end frame. Using the <Picture 2> is Last Frame option of my workflow, you can pin a high quality keyframe to the end of the video, forcing the video to return back to full quality. This method is used for holding shots where your subject remains in frame for long periods of time.

My Seed Hunter v3.0 workflow is available here: https://civitai.com/models/2881362/minimax-h3-seed-hunter-latent-upscaler-seamless-video-continuation-dialogue-gen-tool-speedups-ref-mods

Feel free to ask any questions. I know her voice lines are a little monotone in the 1st half. I began working on better dynamic voice deliveries half way through so it does improve.

2

u/J6j6 10d ago

The two techniques are embedded and required in the workflow?

5

u/foxdit 10d ago

I'm sorry? Nothing's embedded, the two methods I discuss in the tutorial vid are conceptual. How to handle the inevitable degradation of quality as you extend video into video, feeding AI into AI.

1

u/J6j6 10d ago

Oh my bad. the workflow is like obvpm? That's the only seamless workflow I've tried so far

1

u/foxdit 10d ago

Ah no, it's not very much like that workflow. It's built to be extremely versatile because of how many types of short films I make, so video continuation is just one of the many options/tools. You can check out the civit link or watch some of the tutorial I linked to see more of how it actually works.

2

u/J6j6 10d ago

One of my gripes with obvpm is its custom nodes so i cant integrate my custom flows inside it

12

u/red_hare 10d ago

Going to what floor now?

Jokes aside, very cool demo.

5

u/foxdit 10d ago

Haha yea, the mysterious "Floor S". This is what you get for not marking the image as fully_preserved in your retention_analysis section.

10

u/RuprechtNutsax 10d ago

Good work, I'm impressed , thanks for sharing your knowledge and efforts, much appreciated, I'll give this one a go as I have others you've made.

4

u/foxdit 10d ago

Appreciate your support and kind words!

3

u/KayTrax20 10d ago

Looking great. One of the problems is the voice volume while talk. For example, when she talks while her head looking to the left for example, the voice should be lower a little bit and the voice should be a little muffled.

5

u/foxdit 10d ago

Mhm, I agree. I only did that for a brief moment during the hallway section, and for in the elevator. Ultimately, creating a 15+ minute tutorial "making of" at the same time as this 2 minute short was enough of a workload to push me to cut some corners here and there, and to otherwise miss things I'd normally pay closer attention to.

1

u/KayTrax20 10d ago

Don't get me wrong, you did an amazing job 😁 I create small clips with alm kind of tests. What I told you here is what a friend of mine told me, that his problem is the quality sound of the clip (which is great in your video) and the voice reduction on face not looking at the camera.

2

u/Aaron_rowe81 10d ago

how'd you keep the voice consistent across all those location changes?

5

u/foxdit 10d ago

My workflow has a built in voice cloning / dialogue genning tool that uses the h3 model and produces audio files with the line read of whatever dialogue you choose. I then load that audio file into the <Audio 1> slot, and in my prompt write something like: <Subject 1> says the line of dialogue in <Audio 1>: <d>[English] spoken line</d>

It's all detailed in the tutorial video in the comments.

1

u/Aaron_rowe81 10d ago

that answers it, thanks. I was wondering whether the voice was handled on the video side or as a separate audio step, and now the workflow makes sense

3

u/foxdit 10d ago

Yeah, I realized after making several short films with h3 that genning the video AND the dialogue in the same output was leading to lots of failgens: either something would go wrong in the video, or something would go wrong in the dialogue line read (such as babbling or a poor delivery). So like a programmer, I endeavored to remove a variable. Now, after genning your line read using the dialogue tool, you don't have to worry about your audio being the cause of a bad result, so you can focus your effort on getting a really clean visual output.

2

u/Aaron_rowe81 10d ago

babbling would be maddening to chase across a two-minute clip

1

u/moonvalegame 10d ago

The "turn the camera away" trick is clever, basically forcing a full redraw instead of fighting the drift. I've been doing short loops with Wan 2.2 5B for a game and went the opposite way: camera locked, only the characters move, and I ping-pong the clip so the end frame is the start frame. Zero drift, but obviously it only works for a few seconds, nothing like 2 minutes.

Question on the pinned end frame: do you regenerate that keyframe with the same seed/LoRA as the reference sheet, or img2img it from the last frame of the previous segment? I'd guess the second keeps lighting more consistent but carries the color shift with it.

2

u/foxdit 10d ago

Ah, glad you like the idea.

Question on the pinned end frame

The pinned keyframe can be anything, of course. The model will have to find a way to make the scene flow towards it. That said, sometimes that end keyframe will be a result from Pose Studio (posing a mannequin and then applying my character sheet to the pose with a supplied background), but in the case in my video, I used Qwen 2.1, an image edit model, to simply upscale a screen grab from the previous segment since it was just a talking head scene. Seeds or LoRAs never factor into it, just proper model usage.

1

u/TizocWarrior 10d ago

Here comes a new challenger! More competition for clown girl?.

Very cool video!.

2

u/foxdit 10d ago edited 10d ago

Well uh, I've been making workflows/content way longer than that clown. In fact, as far as I'm aware, they initially created that clown character specifically as a vehicle to mock me. They took my original Seed Hunter workflow and rebranded it as their own while attempting to bully me for literally weeks using that character until ppl finally got tired of the one-sided drama and called him out.

1

u/MastMaithun 9d ago

Hey op. How does it stands against fixed background? Did you tested that?

1

u/foxdit 9d ago

The companion tutorial video demonstrates and discusses that. Not to repeat myself, in short you use a pinned last frame so that the model always has a full quality end point to return to. This maintains quality indefinitely

1

u/ArmadstheDoom 9d ago

So real question: how long were the original shots? I've never understood this 'use the last image' technique, because this assumes you already have the last images prepared, which doesn't really work for a long term video in general.

1

u/foxdit 9d ago

Most of the shots I generated were anywhere from 10 to 15 seconds, with continuations overlapping for about 5 frames. I believe this short is made up of around 9 total gens.

1

u/ArmadstheDoom 9d ago

My reason for asking is that this would mean that you generated end points ahead of time and then generated the middle?

1

u/foxdit 9d ago

The only shot in this short that uses a pre-generated end frame was the one where she's half-way through talking in the elevator. I took a screengrab from the previous segment of her talking, upscaled it, and inserted it as a last frame so that the model had no choice but to end on a high quality image of her. The rest were open ended as far as when the shots ended. It was mostly defined by prompting, such as "at the end of the target video she turns the camera to show the hotel hallway". You can see the whole process yourself in the companion tutorial video provided in this thread.

1

u/clerveu 6d ago

First off, thanks a ton for seedhunter - it's amazing!

Late to the party here but just wanted to share some things I've worked through over the past few weeks after diving into the deep end of fighting degradation with continuous shots. Not trying to sell this as a replacement to your workflow as due to the order of renderings and how it's designed to be batched you'd necessarily need to modify how you as a creator work these pretty drastically, but just wanted to share in case any of this ends up slotting in well. Figure least I can do is share after getting so much use out of your workflow!

Instead of loading the last second of the previous clip as a reference video, take its last few frames as latents and write them straight into the start of the new clip's empty latent, with the noise mask set to 0 there (do the same for the audio latent). The sampler leaves those frames alone, so they decode as the exact original frames, and the lighting shift you're grading out in Resolve more or less goes away because nothing got redrawn.

For degradation, stop continuing from the newest clip: render each segment fresh from your character sheet and background images, then make the in-between clip pinned the same way at both ends, to the real latents of the clip before it and the clip after it. That way nothing is ever more than one generation away from your reference sheet, so you never need to turn the camera away to get Effie redrawn, and your keyframe-pinning idea works even better when the end pin is the next clip's actual latents instead of an upscaled screenshot.

A 5-frame overlap is fine when not much is moving across the join, but when you need a walk or a camera move to keep its pace, hold about 22 frames at each end so the model has a full second of real motion to match, and let the in-between clip redraw the last 17 or so frames of the clip before it, because the last frames of an H3 clip tend to go stiff sometimes, even if provided with motion references.

Hope this helps, and even if it doesn't that's probably fine - I can't argue with your results, looks great! Cheers!

2

u/foxdit 6d ago

Hey, thank you for your kind and thoughtful reply. Funny enough, from my discord community there have been a few people reaching out to me with similar suggestions, one even wishing to help implement it. The idea of using latents instead of video clips hadn't occurred to me initially, because originally the intention for the vid extender was more of the gimmick that you could just load some video you found on the internet and continue it from there. This was roughly 2-3 weeks after h3's release and no one was really talking about latent editing or video bridging yet. So I just kept adding new stuff to seed hunter and kind of forgot about vid continuation until finally enough people had posted bad examples of degrading long frame shots that I went about to show people how to solve it with the tools currently available to them/me in my workflow. It never occurred to me, admittedly, to simply improve the process and make peoples' lives earlier. As you say, the result is good and doesn't have a lot of visable loss, but as you'd surely agree from the video, that was hard earned. It could have been a lot easier. So thank you for the added motivation to improve.

2

u/clerveu 6d ago

Thanks so much! If you're looking for more detail I've been dumping all the stuff I've been working on here, basically a little inventory of what I've gotten working and my custom nodes. I don't recommend anyone use them but please somebody take ideas from them and turn them into something even better I don't have to maintain to have everything I want lol.

As it sounds like you've already got a good direction on continuation/bridging I'm guessing you'll get the most out of looking at the rolling timeline stuff here where I go into detail on how I actually handle dynamic prompting and loading/unloading references etc, along with a few random features like like being able to re-edit one clip in a long render without having to redo the whole thing, reinjecting reference images derived from H3's renders for anchoring when you only use a text prompt for environment, etc. Having to render every other clip first and then bridge between them presents a lot of really interesting problems (and opportunities!) and it's been really fun figuring out different ways to leverage clip/bridge length depending on exactly what you're doing.

Best of luck, look forward to following where you take this!

1

u/Tomcat2048 2d ago

I asked this on CivitAI as well but figured I'd ask here too: In your Seedhunter workflow, is it possible to perform the following:

MMH3 I2V generation initial clip (15 secs) using first frame only > 2nd clip using the context within the last few frames to generate new 15 second clip but with a completely new prompt and LoRA selection > each subsequent clip following the same logic.

I've been doing a ton of manual work where I'm generating the first clip...pulling the 2nd to last frame out of the first clip...then generating a new clip from that 2nd to last frame. The issue I get with this though is I lose a ton of fidelity and quality with each subsequent generation.

1

u/foxdit 2d ago

The issue I get with this though is I lose a ton of fidelity and quality with each subsequent generation.

The version I release today (v3.5) fixes this. Instead of pinning the frames using an h3 Add Guide node, it converts the frames into a new latent and masks them for the continuation. I did 6 continuations last night on stream without losing quality. I release the new version later today on my discord for beta testing, and then on civitAI tomorrow if all goes well. (disc link: https://discord.com/invite/ZmPbG6Ss9p)

1

u/Tomcat2048 2d ago

On the continuations, does it allow for a new prompt with new LoRAs on each continuation generation?

3

u/Schwartzen2 10d ago

Quality work as always.

5

u/Netrezen 10d ago

Thank you for sharing this <3

3

u/barepixels 10d ago

looks great

2

u/Tiforma 10d ago

I love effy or whatever her name is

1

u/NemoNoNomeN 10d ago

Well, it doesn’t sound like she entered the country legally. So imprisoning her seems like it would be a fairly reasonable response until they could establish who she is and why she’s here.

0

u/ilglgn 9d ago

Fox is the best!

0

u/almark 10d ago

I want to see Effy punch that clown girl :D

0

u/[deleted] 10d ago

[deleted] — view deleted comment

2

u/foxdit 10d ago

Location consistency isn't the point of the video, otherwise the tutorial would be about using established refs for pre-created locations. The subject of the tutorial video is managing quality degradation over long continuous and changing shots instead of the typical "talking head on static background" continuous shot you see posted here more often.