video loopback for webuiと遊ぶ
Step
web UI
回す
scriptにvideo loopbackがある
input_directoryに動画を入れる
where?
Path(input_dir)
os.getcwd()
したら /stable-diffusion-webui
../data(=/data)がwindowsのstable-diffusion-webui-docker\data
powershellwebui-docker-auto-1 | self.read_image_resize(image_path_list[i])
webui-docker-auto-1 | IndexError: list index out of range
>It looks like this is because you don't have a picture in your input directory.
?
py assert input_dir.exists()
if input_dir.is_file():
extract_dir = output_dir / 'input_frames'
extract_dir.mkdir()
os.system(f"ffmpeg -i {input_dir} {extract_dir / '%07d.png'}")
input_dir = extract_dir
image_list = get_image_paths(input_dir)
image_list = image_list[::extract_nth_frame]
image_list = image_list[:max_frames]
image_n = len(image_list)
if you set a file, images are generated
\stable-diffusion-webui-docker\data\videos_output\230227_041800\output_frames
loop contents are
Loop1: original file
Loop2: original file blended generated image
Loop3 original file blended generated image(higher alpha)
In docker
$ apt-get install ffmpeg