GithubHelp home page GithubHelp logo

leonm99 / stable-diffusion-video2video Goto Github PK

View Code? Open in Web Editor NEW
59.0 4.0 10.0 79 KB

Small script for AUTOMATIC1111/stable-diffusion-webui to run video through img2img.

License: GNU General Public License v3.0

Python 100.00%
ai img2img python stable-diffusion vid2img2img2vid ffmpeg generation image vid2vid video

stable-diffusion-video2video's Introduction

This Repo is now discontinued.

Someone did it better than me so check it out here: https://github.com/Filarius/video2video









Stable-Diffusion-vid2vid

a simple script addon for https://github.com/AUTOMATIC1111/stable-diffusion-webui takes video as input, runs it through img2img and then outputs a video with the generated frames.


Installation

1. Download FFMPEG just put the ffmpeg.exe and the ffprobe.exe in the stable-diffusion-webui folder or install it like shown here. Edit: Make sure you have ffprobe as well with either method mentioned.

2. download vid2vid.py and put it in the scripts folder.

3. start/restart the webui and on the img2img tab you will now have vid2vid in the scripts dropdown.


Generally i would advise you to play around with different settings, maybe a set seed, more or less denoising, more or less sampling steps etc, since the output quality can differ based on the input video, resolution, prompt and all that.

stable-diffusion-video2video's People

Contributors

leonm99 avatar wichaelmalsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stable-diffusion-video2video's Issues

output is only back

running the script on windows, i can see the images being generated in the stable diffusion GUI however the output images being saved to the folder are just back squares, and so the final video is just back.

any ideas?

Error on loading.

When loading up after adding the script, this error message appears:

Traceback (most recent call last):
File "F:\STABLE_DIFF\stable-diffusion-webui\modules\scripts.py", line 184, in load_scripts
module = script_loading.load_module(scriptfile.path)
File "F:\STABLE_DIFF\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
compiled = compile(text, path, 'exec')
File "F:\STABLE_DIFF\stable-diffusion-webui\scripts\vid2vid.py", line 72
<title>Stable-Diffusion-Video2Video/vid2vid.py at main · Leonm99/Stable-Diffusion-Video2Video</title>
^
SyntaxError: invalid character '·' (U+00B7)

Hope it faster!

very useful script, i have used it to make many video
but i find that the time when the vid2vid run a video(such like a 100s video need 24hours) is more longer than put every single flame to process (100305/3600=4.1hours)
maybe the script can make full use of my computer's performance and improve the running speed
thank you! vid2vid is my favorite programs!

图片
图片
图片

for help: how to install in linux(ubuntu22) system

i find it can't work in Linux system (Ubuntu 22)(maybe my install process wrong),although stable diffusion can work

i follow your tip to install [FFMPEG] , put vid2vid.py in script,start sd,but i can't find video2video in img2img

then i try to run vid2vid.py,but error:ImportError: cannot import name 'opts' from partially initialized module 'modules.shared' (most likely due to a circular import) (/home/hr/stable-diffusion-webui/modules/shared.py)

so maybe if you can teach me how to install your py in linux system?
thank you very much!

Error loading script: vid2vid.py

from cmd:
Error loading script: vid2vid.py
Traceback (most recent call last):
File "D:\stable-diffusion-webui\modules\scripts.py", line 195, in load_scripts
module = script_loading.load_module(scriptfile.path)
File "D:\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
compiled = compile(text, path, 'exec')
File "D:\stable-diffusion-webui\scripts\vid2vid.py", line 64
<title>Stable-Diffusion-Video2Video/vid2vid.py at main · Leonm99/Stable-Diffusion-Video2Video</title>
^
SyntaxError: invalid character '·' (U+00B7)

"slash" in the directory name

    # Define a subfolder in our folder to seperate different prompts
    sub_folder = root_path + file_name + "slash"
    
    i think this "slash" is wrong as it creates directory names with the word slash at the end. 
    
    should be without the quotes?

can't find saved files

I looking everywere for the genrated video and the frames but i'm unable to find them
any clue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.