Skip to content

Commit c9391d6

Browse files
committed
video tab modernui layout
Signed-off-by: Vladimir Mandic <[email protected]>
1 parent 990822c commit c9391d6

File tree

8 files changed

+12
-17
lines changed

8 files changed

+12
-17
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- Video: HunyuanVideo-I2V incompatible with latest transformers <https://github.com/huggingface/diffusers/issues/11118>
1515
- Video: FasterCache and PyramidAttentionBroadcast granular config
1616
- Video: FasterCache and PyramidAttentionBroadcast for LTX and WAN <https://github.com/huggingface/diffusers/issues/11134>
17-
- Video: HunyuanVideo-I2V-16ch <https://github.com/huggingface/diffusers/pull/11066>
17+
- Video: HunyuanVideo-I2V-16/33ch <https://github.com/huggingface/diffusers/pull/11066>
1818
- Video: CogVideo-15 support
1919

2020
### Highlights for 2025-03-21

TODO.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ Main ToDo list can be found at [GitHub projects](https://github.com/users/vladma
44

55
## Current
66

7-
- Video tab:
8-
- remote vae
9-
- tiny vae
10-
- lora
11-
- accelerators: teacache, pab, fastercache, paraattention, perflow
12-
- modernui tab
13-
- Detailer daemon: https://github.com/muerrilla/sd-webui-detail-daemon/blob/main/scripts/detail_daemon.py
14-
157
## Future Candidates
168

179
- Redesign postprocessing

javascript/imageParams.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ async function initDragDrop() {
99
if (tab === 0) promptTarget = 'txt2img_prompt_image';
1010
else if (tab === 1) promptTarget = 'img2img_prompt_image';
1111
else if (tab === 2) promptTarget = 'control_prompt_image';
12+
else if (tab === 3) promptTarget = 'video_prompt_image';
1213
else return;
1314
const imgParent = gradioApp().getElementById(promptTarget);
1415
const fileInput = imgParent.querySelector('input[type="file"]');

javascript/progressBar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ function checkPaused(state) {
1414
lastState.paused = state ? !state : !lastState.paused;
1515
const t_el = document.getElementById('txt2img_pause');
1616
const i_el = document.getElementById('img2img_pause');
17+
const c_el = document.getElementById('control_pause');
1718
const v_el = document.getElementById('video_pause');
1819
if (t_el) t_el.innerText = lastState.paused ? 'Resume' : 'Pause';
1920
if (i_el) i_el.innerText = lastState.paused ? 'Resume' : 'Pause';
21+
if (c_el) c_el.innerText = lastState.paused ? 'Resume' : 'Pause';
2022
if (v_el) v_el.innerText = lastState.paused ? 'Resume' : 'Pause';
2123
}
2224

javascript/sdnext.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ button.custom-button { border-radius: var(--button-large-radius); padding: var(-
102102
#txt2img_prompt_container, #img2img_prompt_container, #control_prompt_container, #video_prompt_container { margin-right: var(--layout-gap) }
103103
#txt2img_footer, #img2img_footer, #control_footer { height: fit-content; display: none; }
104104
#txt2img_generate_box, #img2img_generate_box { gap: 0.5em; flex-wrap: unset; min-width: unset; width: 66.6%; }
105-
#control_generate_box { gap: 0.5em; flex-wrap: unset; min-width: unset; width: 100%; }
106-
#control_generate_box button:nth-child(1) { flex-grow: 2; }
107-
#control_generate_box button:nth-child(2) { flex-grow: 1; }
105+
#control_generate_box, #video_generate_box { gap: 0.5em; flex-wrap: unset; min-width: unset; width: 100%; }
106+
#control_generate_box button:nth-child(1), #video_generate_box button:nth-child(1) { flex-grow: 2; }
107+
#control_generate_box button:nth-child(2), #video_generate_box button:nth-child(2) { flex-grow: 1; }
108108
#txt2img_actions_column, #img2img_actions_column, #control_actions_column, #video_actions_column { gap: 0.3em; height: fit-content; }
109109
#txt2img_generate_box>button, #img2img_generate_box>button, #control_generate_box>button, #video_generate_box>button, #txt2img_enqueue, #img2img_enqueue, #txt2img_enqueue>button, #img2img_enqueue>button { min-height: 44px !important; max-height: 44px !important; line-height: 1em; white-space: break-spaces; min-width: unset; }
110110
#txt2img_enqueue_wrapper, #img2img_enqueue_wrapper, #control_enqueue_wrapper { min-width: unset !important; width: 31%; }
111-
#txt2img_generate_line2, #img2img_generate_line2, #txt2img_tools, #img2img_tools, #control_generate_line2, #control_tools { display: flex; }
111+
#txt2img_generate_line2, #img2img_generate_line2, #txt2img_tools, #img2img_tools, #control_generate_line2, #control_tools, #video_generate_line2, #video_tools { display: flex; }
112112
#txt2img_generate_line2>button, #img2img_generate_line2>button, #extras_generate_box>button, #control_generate_line2>button, #txt2img_tools>button, #img2img_tools>button, #control_tools>button { height: 2em; line-height: 0; font-size: var(--text-md);
113113
min-width: unset; display: block !important; }
114114
#txt2img_prompt, #txt2img_neg_prompt, #img2img_prompt, #img2img_neg_prompt, #control_prompt, #control_neg_prompt, #video_prompt, #video_neg_prompt { display: contents; }

modules/video_models/models_def.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
- LTXVideo 0.9.5 T2V: pass/pass/fail, v095 pipeline is tbd
1616
- LTXVideo 0.9.5 I2V: pass/pass/fail, v095 pipeline is tbd
1717
- LTXVideo 0.9.1 T2V: pass/pass/pass
18-
- LTXVideo 0.9.1 I2V: pass/pass/tbd
18+
- LTXVideo 0.9.1 I2V: pass/pass/pass
1919
- LTXVideo 0.9.0 T2V: pass/pass/pass
20-
- LTXVideo 0.9.0 I2V: pass/pass/tbd
20+
- LTXVideo 0.9.0 I2V: pass/pass/pass
2121
2222
- WAN 2.1 1.3B T2V: pass/pass/pass
2323
- WAN 2.1 14B T2V: pass/pass/pass

scripts/prompt_enhance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ def run(self, p: processing.StableDiffusionProcessing, auto_apply, temperature,
9595
shared.log.debug(f'Prompt enhance: prompt="{p.prompt}"')
9696

9797
def after_component(self, component, **kwargs): # searching for actual ui prompt components
98-
if getattr(component, 'elem_id', '') in ['txt2img_prompt', 'img2img_prompt', 'control_prompt']:
98+
if getattr(component, 'elem_id', '') in ['txt2img_prompt', 'img2img_prompt', 'control_prompt', 'video_prompt']:
9999
self.prompt = component

0 commit comments

Comments
 (0)