text stringlengths 0 284 |
|---|
#Nhập link github theo từng dòng để cài extension list của riêng bạn từ phiên chạy tiếp theo |
https://github.com/richrobber2/canvas-zoom |
https://github.com/zanllp/sd-webui-infinite-image-browsing |
<div style="display: block;"> |
<a href="https://stablediffusion.vn" target="_blank">Phiên bản mod bởi © stablediffusion.vn</a> |
</div> |
<div class="sd-footer"> |
<a> |
<button><a href="https://stablediffusion.vn/huong-dan-chung/" target="_blank">Hướng dẫn sử dụng</a></button> |
<button><a href="https://stablediffusion.vn/webui-catalog/" target="_blank">WebUI catalog</a></button> |
<button><a href="https://stablediffusion.vn/bo-cong-cu/" target="_blank">Các công cụ khác</a></button> |
<button><a href="https://stablediffusion.vn/contact/" target="_blank">Liên hệ</a></button> |
<button><a href="https://stablediffusion.vn/gop-y/" target="_blank">Góp ý</a></button> |
<button><a href="https://stablediffusion.vn/donate/" target="_blank">Donate</a></button> |
</a> |
</div> |
<div class="versions"> |
{versions} |
</div> |
import os |
import platform |
import numpy as np |
from tqdm import trange |
import math |
import subprocess as sp |
import string |
import random |
from functools import reduce |
import re |
import modules.scripts as scripts |
import gradio as gr |
from modules import processing, shared, sd_samplers, images |
from modules.processing import Processed |
from modules.sd_samplers import samplers |
from modules.shared import opts, cmd_opts, state |
import subprocess |
wave_completed_regex = r'@wave_completed\(([\-]?[0-9]*\.?[0-9]+), ?([\-]?[0-9]*\.?[0-9]+)\)' |
wave_remaining_regex = r'@wave_remaining\(([\-]?[0-9]*\.?[0-9]+), ?([\-]?[0-9]*\.?[0-9]+)\)' |
def run_cmd(cmd): |
cmd = list(map(lambda arg: str(arg), cmd)) |
print("Executing %s" % " ".join(cmd)) |
popen_params = {"stdout": sp.DEVNULL, "stderr": sp.PIPE, "stdin": sp.DEVNULL} |
if os.name == "nt": |
popen_params["creationflags"] = 0x08000000 |
proc = sp.Popen(cmd, **popen_params) |
out, err = proc.communicate() # proc.wait() |
proc.stderr.close() |
if proc.returncode: |
raise IOError(err.decode("utf8")) |
del proc |
def encode_video(input_pattern, starting_number, output_dir, fps, quality, encoding, create_segments, segment_duration, ffmpeg_path): |
two_pass = (encoding == "VP9 (webm)") |
alpha_channel = ("webm" in encoding) |
suffix = "webm" if "webm" in encoding else "mp4" |
output_location = output_dir + f".{suffix}" |
encoding_lib = { |
"VP9 (webm)": "libvpx-vp9", |
"VP8 (webm)": "libvpx", |
"H.264 (mp4)": "libx264", |
"H.265 (mp4)": "libx265", |
}[encoding] |
args = [ |
"-framerate", fps, |
"-start_number", int(starting_number), |
"-i", input_pattern, |
"-c:v", encoding_lib, |
"-b:v","0", |
"-crf", quality, |
] |
if encoding_lib == "libvpx-vp9": |
args += ["-pix_fmt", "yuva420p"] |
if(ffmpeg_path == ""): |
ffmpeg_path = "ffmpeg" |
if(platform.system == "Windows"): |
ffmpeg_path += ".exe" |
print("\n\n") |
if two_pass: |
first_pass_args = args + [ |
"-pass", "1", |
"-an", |
"-f", "null", |
os.devnull |
] |
second_pass_args = args + [ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.