Giter Club home page Giter Club logo

Comments (2)

xx025 avatar xx025 commented on June 12, 2024

this maybe acuse for moviepy

you can check this code

def create_video(input_images, output_video_path, frames_per_second=30):
# Create a folder to store the frames
output_folder = "output_frames"
os.makedirs(output_folder, exist_ok=True)
# Save the frames as images
for i, frame in enumerate(input_images):
frame_path = os.path.join(output_folder, f"frame_{i:06d}.png")
imageio.imwrite(frame_path, np.array(frame))
# Convert frames to video
# 使用MoviePy将图像序列合成成视频
clip = ImageSequenceClip(sorted([os.path.join(output_folder, frame) for frame in os.listdir(output_folder)]),
fps=frames_per_second)
clip.write_videofile(output_video_path, codec="libx264")
# 删除保存的图片帧
shutil.rmtree(output_folder)
return output_video_path

and comments shutil.rmtree(output_folder) line, and go output_folder check every frames, is normal

i select moviepy because of opencv-python exist some encode problem, you can try continue use opencv-python method

only on setting.py file, set creat_video_by_opencv =True

creat_video_by_opencv = False
# 使用opencv生成视频, 但是发现会有一些编码的问题,所以默认关闭,默认使用moviepy
# Use opencv to generate video, but it is found that there will be some encoding problems,
# so it is turned off by default,default use moviepy

from stable-video-diffusion-webui.

xx025 avatar xx025 commented on June 12, 2024

apart, at ui page have a nsfw selct you can un-selct it, and try again

from stable-video-diffusion-webui.

Related Issues (10)

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.