Refine negative prompt labels and update example video assets
Browse files
app.py
CHANGED
@@ -407,7 +407,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
407 |
lines=5,
|
408 |
)
|
409 |
txt2vid_negative_prompt = gr.Textbox(
|
410 |
-
label="Step 2: Enter Negative Prompt
|
411 |
placeholder="Describe what you don't want in the video...",
|
412 |
value="low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
413 |
lines=2,
|
@@ -421,27 +421,29 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
421 |
|
422 |
txt2vid_advanced = create_advanced_options()
|
423 |
txt2vid_generate = gr.Button(
|
424 |
-
"Step 5: Generate Video",
|
|
|
|
|
425 |
)
|
426 |
|
427 |
with gr.Column():
|
428 |
-
txt2vid_output = gr.Video(label="
|
429 |
|
430 |
with gr.Row():
|
431 |
gr.Examples(
|
432 |
examples=[
|
433 |
[
|
434 |
-
"A
|
435 |
"low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
436 |
-
"assets/
|
437 |
],
|
438 |
[
|
439 |
-
"A
|
440 |
"low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
441 |
-
"assets/
|
442 |
],
|
443 |
[
|
444 |
-
"A
|
445 |
"low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
446 |
"assets/t2v_0.mp4",
|
447 |
],
|
@@ -466,7 +468,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
466 |
lines=5,
|
467 |
)
|
468 |
img2vid_negative_prompt = gr.Textbox(
|
469 |
-
label="Step 3: Enter Negative Prompt
|
470 |
placeholder="Describe what you don't want in the video...",
|
471 |
value="low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
472 |
lines=2,
|
@@ -484,7 +486,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
484 |
)
|
485 |
|
486 |
with gr.Column():
|
487 |
-
img2vid_output = gr.Video(label="
|
488 |
|
489 |
with gr.Row():
|
490 |
gr.Examples(
|
@@ -520,6 +522,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
520 |
fn=generate_video_from_text,
|
521 |
inputs=[txt2vid_prompt, txt2vid_negative_prompt, *txt2vid_advanced],
|
522 |
outputs=txt2vid_output,
|
|
|
523 |
)
|
524 |
|
525 |
img2vid_preset.change(
|
@@ -535,6 +538,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
535 |
*img2vid_advanced,
|
536 |
],
|
537 |
outputs=img2vid_output,
|
|
|
538 |
)
|
539 |
|
540 |
iface.launch(share=True)
|
|
|
407 |
lines=5,
|
408 |
)
|
409 |
txt2vid_negative_prompt = gr.Textbox(
|
410 |
+
label="Step 2: Enter Negative Prompt",
|
411 |
placeholder="Describe what you don't want in the video...",
|
412 |
value="low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
413 |
lines=2,
|
|
|
421 |
|
422 |
txt2vid_advanced = create_advanced_options()
|
423 |
txt2vid_generate = gr.Button(
|
424 |
+
"Step 5: Generate Video",
|
425 |
+
variant="primary",
|
426 |
+
size="lg",
|
427 |
)
|
428 |
|
429 |
with gr.Column():
|
430 |
+
txt2vid_output = gr.Video(label="Generated Output")
|
431 |
|
432 |
with gr.Row():
|
433 |
gr.Examples(
|
434 |
examples=[
|
435 |
[
|
436 |
+
"A woman stirs a pot of boiling water on a white electric burner. Her hands, with purple nail polish, hold a wooden spoon and move it in a circular motion within a white pot filled with bubbling water. The pot sits on a white electric burner with black buttons and a digital display. The burner is positioned on a white countertop with a red and white checkered cloth partially visible in the bottom right corner. The camera angle is a direct overhead shot, remaining stationary throughout the scene. The lighting is bright and even, illuminating the scene with a neutral white light. The scene is real-life footage.",
|
437 |
"low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
438 |
+
"assets/i2v_2.mp4",
|
439 |
],
|
440 |
[
|
441 |
+
"A woman in a long, flowing dress stands in a field, her back to the camera, gazing towards the horizon; her hair is long and light, cascading down her back; she stands beneath the sprawling branches of a large oak tree; to her left, a classic American car is parked on the dry grass; in the distance, a wrecked car lies on its side; the sky above is a dramatic canvas of bright white clouds against a darker sky; the entire image is in black and white, emphasizing the contrast of light and shadow. The woman is walking slowly towards the car.",
|
442 |
"low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
443 |
+
"assets/i2v_0.mp4",
|
444 |
],
|
445 |
[
|
446 |
+
"A pair of hands shapes a piece of clay on a pottery wheel, gradually forming a cone shape. The hands, belonging to a person out of frame, are covered in clay and gently press a ball of clay onto the center of a spinning pottery wheel. The hands move in a circular motion, gradually forming a cone shape at the top of the clay. The camera is positioned directly above the pottery wheel, providing a bird’s-eye view of the clay being shaped. The lighting is bright and even, illuminating the clay and the hands working on it. The scene is captured in real-life footage.",
|
447 |
"low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
448 |
"assets/t2v_0.mp4",
|
449 |
],
|
|
|
468 |
lines=5,
|
469 |
)
|
470 |
img2vid_negative_prompt = gr.Textbox(
|
471 |
+
label="Step 3: Enter Negative Prompt",
|
472 |
placeholder="Describe what you don't want in the video...",
|
473 |
value="low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly",
|
474 |
lines=2,
|
|
|
486 |
)
|
487 |
|
488 |
with gr.Column():
|
489 |
+
img2vid_output = gr.Video(label="Generated Output")
|
490 |
|
491 |
with gr.Row():
|
492 |
gr.Examples(
|
|
|
522 |
fn=generate_video_from_text,
|
523 |
inputs=[txt2vid_prompt, txt2vid_negative_prompt, *txt2vid_advanced],
|
524 |
outputs=txt2vid_output,
|
525 |
+
concurrency_limit=1,
|
526 |
)
|
527 |
|
528 |
img2vid_preset.change(
|
|
|
538 |
*img2vid_advanced,
|
539 |
],
|
540 |
outputs=img2vid_output,
|
541 |
+
concurrency_limit=1,
|
542 |
)
|
543 |
|
544 |
iface.launch(share=True)
|