We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
少了几行代码,加上就可以启动成功了 原来是: with gr.Column(): with gr.Row(): with gr.Column(): with gr.Group(): image_input = gr.Image(label="图像输入(自动缩放)", type="filepath") audio_input = gr.Audio(label="音频输入", type="filepath") pose_input = gr.Textbox(label="姿态输入(目录地址)", placeholder="请输入姿态数据的目录地址", value="assets/halfbody_demo/pose/fight") with gr.Group(): length = gr.Number(label="视频长度,推荐120)", value=120) steps = gr.Number(label="步骤(默认6)", value=6) quantization_input = gr.Checkbox(label="int8量化(推荐显存12G的用户开启,并使用不超过5秒的音频)", value=False) seed = gr.Number(label="种子(-1为随机)", value=-1) generate_button = gr.Button("🎬 生成视频") with gr.Column(): video_output = gr.Video(label="输出视频") seed_text = gr.Textbox(label="种子", interactive=False, visible=False)
新增后是: with gr.Column(): with gr.Row(): with gr.Column(): with gr.Group(): image_input = gr.Image(label="图像输入(自动缩放)", type="filepath") audio_input = gr.Audio(label="音频输入", type="filepath") pose_input = gr.Textbox(label="姿态输入(目录地址)", placeholder="请输入姿态数据的目录地址", value="assets/halfbody_demo/pose/fight") with gr.Group(): with gr.Row(): width = gr.Number(label="宽度(默认768,请选择默认值)", value=768) height = gr.Number(label="高度(默认768,请选择默认值)", value=768) length = gr.Number(label="视频长度,推荐120)", value=120) with gr.Row(): steps = gr.Number(label="步骤(默认30)", value=30) sample_rate = gr.Number(label="采样率(默认16000)", value=16000) cfg = gr.Number(label="cfg(推荐2.5)", value=2.5, step=0.1) with gr.Row(): fps = gr.Number(label="帧率(默认24)", value=24) context_frames = gr.Number(label="上下文框架(默认12)", value=12) context_overlap = gr.Number(label="上下文重叠(默认3)", value=3) with gr.Row(): quantization_input = gr.Checkbox(label="int8量化(推荐显存12G的用户开启,并使用不超过5秒的音频)", value=False) seed = gr.Number(label="种子(-1为随机)", value=-1) generate_button = gr.Button("🎬 生成视频")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
少了几行代码,加上就可以启动成功了
原来是:
with gr.Column():
with gr.Row():
with gr.Column():
with gr.Group():
image_input = gr.Image(label="图像输入(自动缩放)", type="filepath")
audio_input = gr.Audio(label="音频输入", type="filepath")
pose_input = gr.Textbox(label="姿态输入(目录地址)", placeholder="请输入姿态数据的目录地址", value="assets/halfbody_demo/pose/fight")
with gr.Group():
length = gr.Number(label="视频长度,推荐120)", value=120)
steps = gr.Number(label="步骤(默认6)", value=6)
quantization_input = gr.Checkbox(label="int8量化(推荐显存12G的用户开启,并使用不超过5秒的音频)", value=False)
seed = gr.Number(label="种子(-1为随机)", value=-1)
generate_button = gr.Button("🎬 生成视频")
with gr.Column():
video_output = gr.Video(label="输出视频")
seed_text = gr.Textbox(label="种子", interactive=False, visible=False)
新增后是:
with gr.Column():
with gr.Row():
with gr.Column():
with gr.Group():
image_input = gr.Image(label="图像输入(自动缩放)", type="filepath")
audio_input = gr.Audio(label="音频输入", type="filepath")
pose_input = gr.Textbox(label="姿态输入(目录地址)", placeholder="请输入姿态数据的目录地址", value="assets/halfbody_demo/pose/fight")
with gr.Group():
with gr.Row():
width = gr.Number(label="宽度(默认768,请选择默认值)", value=768)
height = gr.Number(label="高度(默认768,请选择默认值)", value=768)
length = gr.Number(label="视频长度,推荐120)", value=120)
with gr.Row():
steps = gr.Number(label="步骤(默认30)", value=30)
sample_rate = gr.Number(label="采样率(默认16000)", value=16000)
cfg = gr.Number(label="cfg(推荐2.5)", value=2.5, step=0.1)
with gr.Row():
fps = gr.Number(label="帧率(默认24)", value=24)
context_frames = gr.Number(label="上下文框架(默认12)", value=12)
context_overlap = gr.Number(label="上下文重叠(默认3)", value=3)
with gr.Row():
quantization_input = gr.Checkbox(label="int8量化(推荐显存12G的用户开启,并使用不超过5秒的音频)", value=False)
seed = gr.Number(label="种子(-1为随机)", value=-1)
generate_button = gr.Button("🎬 生成视频")
The text was updated successfully, but these errors were encountered: