Added workflows

This commit is contained in:
Sirshendu Ganguly
2026-04-05 09:52:59 +05:30
parent 683ab943a1
commit fbb9a57ab8
8 changed files with 51 additions and 3 deletions
+12
View File
@@ -1367,6 +1367,10 @@ function videoSettingsToggleHandler(settingsNode) {
const thinkingWidget = settingsNode.widgets.find(w => w && w.name === "thinking");
const useMultiClipWidget = settingsNode.widgets.find(w => w && w.name === "useMultiClip");
const multiClipWidget = settingsNode.widgets.find(w => w && w.name === "multiClip");
const useShotTypeWidget = settingsNode.widgets.find(w => w && w.name === "useShotType");
const shotTypeWidget = settingsNode.widgets.find(w => w && w.name === "shotType");
const usePromptExtendWidget = settingsNode.widgets.find(w => w && w.name === "usePromptExtend");
const promptExtendWidget = settingsNode.widgets.find(w => w && w.name === "promptExtend");
function toggleWidgetState(useWidget, paramWidget, paramName) {
if (!useWidget || !paramWidget) return;
@@ -1394,6 +1398,8 @@ function videoSettingsToggleHandler(settingsNode) {
if (useStyleWidget && styleWidget) toggleWidgetState(useStyleWidget, styleWidget, "style");
if (useThinkingWidget && thinkingWidget) toggleWidgetState(useThinkingWidget, thinkingWidget, "thinking");
if (useMultiClipWidget && multiClipWidget) toggleWidgetState(useMultiClipWidget, multiClipWidget, "multiClip");
if (useShotTypeWidget && shotTypeWidget) toggleWidgetState(useShotTypeWidget, shotTypeWidget, "shotType");
if (usePromptExtendWidget && promptExtendWidget) toggleWidgetState(usePromptExtendWidget, promptExtendWidget, "promptExtend");
}
function audioInferenceSpeechToggleHandler(speechNode) {
@@ -2488,6 +2494,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
"Veo": [
"google:2@0 (Veo 2.0)", "google:3@0 (Veo 3.0)", "google:3@1 (Veo 3.0 Fast)",
"google:3@2 (Veo 3.1)", "google:3@3 (Veo 3.1 Fast)",
"google:veo@3.1-lite (Veo 3.1 Lite)",
],
"Bytedance": [
"bytedance:2@1 (Seedance 1.0 Pro)", "bytedance:1@1 (Seedance 1.0 Lite)",
@@ -2515,6 +2522,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
"runware:200@8 (Wan 2.2 A14B Animate)",
"alibaba:wan@2.6 (Wan 2.6)",
"alibaba:wan@2.6-flash (Wan 2.6 Flash)",
"alibaba:wan@2.7 (Wan2.7)",
],
"OpenAI": [
"openai:3@1 (OpenAI Sora 3.1)", "openai:3@0 (OpenAI Sora 3.0)",
@@ -2596,6 +2604,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
"google:3@1": {"width": 1280, "height": 720},
"google:3@2": {"width": 1280, "height": 720},
"google:3@3": {"width": 1280, "height": 720},
"google:veo@3.1-lite": {"width": 1280, "height": 720},
"bytedance:2@1": {"width": 864, "height": 480},
"bytedance:1@1": {"width": 864, "height": 480},
"bytedance:5@1": {"width": 1024, "height": 1024},
@@ -2627,6 +2636,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
"runware:200@8": {"width": 1104, "height": 832},
"alibaba:wan@2.6": {"width": 1280, "height": 720},
"alibaba:wan@2.6-flash": {"width": 1280, "height": 720},
"alibaba:wan@2.7": {"width": 1280, "height": 720},
"openai:3@1": {"width": 1280, "height": 720},
"openai:3@0": {"width": 1280, "height": 720},
"lightricks:2@0": {"width": 1920, "height": 1080},
@@ -2683,6 +2693,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
"google:3@1": "720p",
"google:3@2": "720p",
"google:3@3": "720p",
"google:veo@3.1-lite": "720p",
"bytedance:2@1": "480p",
"bytedance:1@1": "480p",
"bytedance:5@1": null, // No resolution support
@@ -2714,6 +2725,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
"runware:200@8": "720p",
"alibaba:wan@2.6": "720p",
"alibaba:wan@2.6-flash": "720p",
"alibaba:wan@2.7": "720p",
"openai:3@1": "720p",
"openai:3@0": "720p",
"lightricks:2@0": "1080p",
+1 -1
View File
@@ -141,7 +141,7 @@ class txt2vid:
"tooltip": "Connect a Runware Accelerator Options Node to configure caching and acceleration settings.",
}),
"settings": ("RUNWAREVIDEOSETTINGS", {
"tooltip": "Connect a Runware Video Inference Settings node to configure draft, audio, promptUpsampling, voiceDescription, style, thinking, multiClip, etc.",
"tooltip": "Connect a Runware Video Inference Settings node to configure draft, audio, promptUpsampling, voiceDescription, style, thinking, multiClip, shotType, promptExtend, etc.",
}),
}
}
+6
View File
@@ -31,6 +31,7 @@ class videoModelSearch:
"google:3@1 (Veo 3.0 Fast)",
"google:3@2 (Veo 3.1)",
"google:3@3 (Veo 3.1 Fast)",
"google:veo@3.1-lite (Veo 3.1 Lite)",
],
"Bytedance": [
"bytedance:2@1 (Seedance 1.0 Pro)",
@@ -72,6 +73,7 @@ class videoModelSearch:
"runware:200@8 (Wan 2.2 A14B Animate)",
"alibaba:wan@2.6 (Wan 2.6)",
"alibaba:wan@2.6-flash (Wan 2.6 Flash)",
"alibaba:wan@2.7 (Wan2.7)",
],
"OpenAI": [
"openai:3@1 (OpenAI Sora 3.1)",
@@ -161,6 +163,7 @@ class videoModelSearch:
"google:3@1": {"width": 1280, "height": 720},
"google:3@2": {"width": 1280, "height": 720},
"google:3@3": {"width": 1280, "height": 720},
"google:veo@3.1-lite": {"width": 1280, "height": 720},
# Bytedance Models
"bytedance:2@1": {"width": 864, "height": 480},
@@ -202,6 +205,7 @@ class videoModelSearch:
"runware:200@8": {"width": 1104, "height": 832},
"alibaba:wan@2.6": {"width": 1280, "height": 720},
"alibaba:wan@2.6-flash": {"width": 1280, "height": 720},
"alibaba:wan@2.7": {"width": 1280, "height": 720},
# OpenAI Models
"openai:3@1": {"width": 1280, "height": 720},
@@ -290,6 +294,7 @@ class videoModelSearch:
"google:3@1": "720p",
"google:3@2": "720p",
"google:3@3": "720p",
"google:veo@3.1-lite": "720p",
# Bytedance Models
"bytedance:2@1": "480p",
@@ -331,6 +336,7 @@ class videoModelSearch:
"runware:200@8": "720p",
"alibaba:wan@2.6": "720p",
"alibaba:wan@2.6-flash": "720p",
"alibaba:wan@2.7": "720p",
# OpenAI Models
"openai:3@1": "720p",
+28 -2
View File
@@ -1,6 +1,6 @@
"""
Runware Video Inference Settings Node
Provides settings (draft, audio, promptUpsampling, voiceDescription, style, thinking, multiClip, etc.) for Runware Video Inference.
Provides settings (draft, audio, promptUpsampling, voiceDescription, style, thinking, multiClip, shotType, promptExtend, etc.) for Runware Video Inference.
"""
from typing import Dict, Any
@@ -105,6 +105,24 @@ class RunwareVideoSettings:
"label_on": "Enabled",
"label_off": "Disabled",
}),
"useShotType": ("BOOLEAN", {
"tooltip": "Enable to include shotType in video inference settings.",
"default": False,
}),
"shotType": (["single", "multi"], {
"tooltip": "Shot type: single (one continuous shot) or multi (multiple switching shots). Parameter priority: shot_type > prompt. Only used when 'Use Shot Type' is enabled.",
"default": "single",
}),
"usePromptExtend": ("BOOLEAN", {
"tooltip": "Enable to include promptExtend in video inference settings.",
"default": False,
}),
"promptExtend": ("BOOLEAN", {
"tooltip": "Prompt extend flag. Only used when 'Use Prompt Extend' is enabled.",
"default": False,
"label_on": "Enabled",
"label_off": "Disabled",
}),
}
}
@@ -113,7 +131,7 @@ class RunwareVideoSettings:
FUNCTION = "createSettings"
CATEGORY = "Runware"
DESCRIPTION = (
"Configure video inference settings (draft, audio, promptUpsampling, voiceDescription, style, thinking, multiClip, etc.) for Runware Video Inference. "
"Configure video inference settings (draft, audio, promptUpsampling, voiceDescription, style, thinking, multiClip, shotType, promptExtend, etc.) for Runware Video Inference. "
"Connect to Runware Video Inference node."
)
@@ -139,6 +157,10 @@ class RunwareVideoSettings:
thinking = kwargs.get("thinking", "auto")
use_multi_clip = kwargs.get("useMultiClip", False)
multi_clip = kwargs.get("multiClip", False)
use_shot_type = kwargs.get("useShotType", False)
shot_type = kwargs.get("shotType", "single")
use_prompt_extend = kwargs.get("usePromptExtend", False)
prompt_extend = kwargs.get("promptExtend", False)
settings: Dict[str, Any] = {}
@@ -162,6 +184,10 @@ class RunwareVideoSettings:
settings["thinking"] = thinking
if use_multi_clip:
settings["multiClip"] = bool(multi_clip)
if use_shot_type:
settings["shotType"] = shot_type
if use_prompt_extend:
settings["promptExtend"] = bool(prompt_extend)
return (settings,)
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long