In the previous tutorial, I demonstrated how to install DiffEx and leverage its capabilities to effortlessly transform text into captivating animations. Building upon that foundation, our focus now shifts to exploring the exciting realm of video-to-video transformations with DiffEx. Prepare to delve into a world where your videos undergo stunning metamorphosis, unlocking a new dimension of creativity and expression. Join me as we uncover the power of DiffEx in transforming videos with ease and precision.
To embark on this video-to-video journey with DiffEx, all you need is a starting video that serves as the foundation for your transformation. With this essential requirement met, we're prepared to unleash the full potential of DiffEx in bringing your vision to life.
For optimal results, ensure that if there's a face in your video, it remains visible and not too far from the camera throughout. This helps prevent glitches and artifacts in the final video.
Let’s boot up DiffEx and adjust our settings for the first method, Stylize.
Go to the Stylize tab and press “Select Video”, a pop-up will appear telling you a new project will be started, press “OK”.
Now select your video. Make sure the FPS matches the FPS you set in the Setup menu and press “Process”. DiffEx will now automatically create prompts for each frame of the video using the WD14tagger, add the video to 2 ControlNet units and adjust the Execute settings.
In the prompt tab you can review the prompts the WD14tagger has automatically created for you. It’s also advised to add your own "Head Prompt" and "Negative Prompt".
In the advanced tab there are a few settings you might want to take a look at.
In the execute tab everything should be set correctly already thanks to the Stylize processing. But if you want you can adjust the Width & Height. I lowered mine a little bit for faster generation, since I will upscale the video with A1111 later anyway. Now press “Build & Run” and sit back, relax while DiffEx does the rest.
My video had a total of 69 frames, using this method at 20 Steps and a 720x1280 resolution the generation only took 8 minutes to generate.
This feature is still in beta, the animation does not completely match our original video as you will see in the examples at the end. Let’s explore a more consistent way of video style transfer within DiffEx.
To more consistently stylize your video with DiffEx we are going to set up the ControlNet units ourselfs. This sounds tricky but I assure you it’s just as easy.
I suggest heading to the "Stylize" tab to process your video. This automatically sets most of the settings correctly for you.
Go to the Prompt tab and disable the IP-Adapter on the right. Adjust the prompts if needed.
Now head to the ControlNet tab and disable the IP2P model. Scroll down in the list to find the “Tile” model and enable it, make sure you don’t select the “Use Preprocessor” option. Set the scale to somewhere between 0.8 & 1.25. Now you should only have the OpenPose and the Tile model selected.
Go to the execute tab and press on “Build & Run” to start generating your video! You can watch the progression in your console if you have it enabled in the advanced settings.
When your videos are done rendering they can be found in the “animatediff-cli-prompt-travel” folder. Open the folder, if you used the stylize function you can find your video in the “stylize” folder, even if you adjusted the ControlNet afterwards. If you haven’t used the stylize function, your videos can be found in the “output” folder.
To further enhance our video we’re going to upscale it by using Automatic1111’s Stable Diffusion interface. I have a whole dedicated tutorial on this if you’re interested, but for now I’ll show you quickly how it’s done.
How to Upscale any Video with AI for Free (Stable Diffusion)
This process will only take a minute.
Now that we have successfully upscaled our animation we are left with individual frames. You can stitch them together with any video software of your choice. Or even better, use FlowFrames to interpolate the frames and create a video automatically! Download FlowFrames and select all the default options when installing.
That only took 22 seconds to interpolate and it magically doubled our frames per second!
Now let's look at the video we just created. I’ll include both methods in the video so you can see what works best for yourself. At the end there’s a bonus clip using SoftEdge & Tile instead of OpenPose!
In summary, DiffEx is a versatile tool for transforming videos into captivating creations. With intuitive features and limitless potential, it empowers users to unleash their creativity effortlessly. DiffEx is the go-to solution for content creators seeking to push the boundaries of visual storytelling.
DiffEx is a user-friendly Desktop UI designed for AnimateDiff, streamlining the animation creation process with its intuitive features.
DiffEx simplifies animation creation by automating tasks like importing videos and images, offering multi ControlNet support, and integrating models and motion modules seamlessly.
Yes, DiffEx excels at video-to-video transformations, offering features like Stylize mode and ControlNet setup for consistent stylization and enhancement of videos.
Absolutely! DiffEx's user-friendly interface and intuitive features make it accessible for beginners while offering advanced capabilities for seasoned professionals.
Yes, DiffEx is versatile and supports both text-based and video-based animations. Whether you want to transform text prompts into animations or stylize existing videos, DiffEx has you covered.
With DiffEx, the possibilities are endless. You can create various types of videos, including animated shorts, promotional videos, educational content, and more. Let your creativity soar!