Merge pull request #69 from Runware/feature-updateBytedanceProviderSettings
Add Bytedance audio toggle and Seedance 1.5 Pro video model
This commit is contained in:
@@ -1123,6 +1123,8 @@ function bytedanceProviderSettingsToggleHandler(bytedanceNode) {
|
||||
const maxSequentialImagesWidget = bytedanceNode.widgets.find(w => w.name === "maxSequentialImages");
|
||||
const useFastModeWidget = bytedanceNode.widgets.find(w => w.name === "useFastMode");
|
||||
const fastModeWidget = bytedanceNode.widgets.find(w => w.name === "fastMode");
|
||||
const useAudioWidget = bytedanceNode.widgets.find(w => w.name === "useAudio");
|
||||
const audioWidget = bytedanceNode.widgets.find(w => w.name === "audio");
|
||||
|
||||
// Helper function to toggle widget enabled state (exact same pattern)
|
||||
function toggleWidgetState(useWidget, paramWidget, paramName) {
|
||||
@@ -1177,6 +1179,10 @@ function bytedanceProviderSettingsToggleHandler(bytedanceNode) {
|
||||
if (useFastModeWidget && fastModeWidget) {
|
||||
toggleWidgetState(useFastModeWidget, fastModeWidget, "fastMode");
|
||||
}
|
||||
|
||||
if (useAudioWidget && audioWidget) {
|
||||
toggleWidgetState(useAudioWidget, audioWidget, "audio");
|
||||
}
|
||||
}
|
||||
|
||||
function openaiProviderSettingsToggleHandler(openaiNode) {
|
||||
@@ -1694,6 +1700,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
|
||||
"Bytedance": [
|
||||
"bytedance:2@1 (Seedance 1.0 Pro)", "bytedance:1@1 (Seedance 1.0 Lite)",
|
||||
"bytedance:5@1 (OmniHuman 1)", "bytedance:5@2 (OmniHuman 1.5)",
|
||||
"bytedance:seedance@1.5-pro (Seedance 1.5 Pro)",
|
||||
],
|
||||
"MiniMax": [
|
||||
"minimax:1@1 (MiniMax 01 Base)", "minimax:2@1 (MiniMax 01 Director)",
|
||||
@@ -1765,6 +1772,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
|
||||
"bytedance:1@1": {"width": 864, "height": 480},
|
||||
"bytedance:5@1": {"width": 1024, "height": 1024},
|
||||
"bytedance:5@2": {"width": 1024, "height": 1024},
|
||||
"bytedance:seedance@1.5-pro": {"width": 864, "height": 480},
|
||||
"minimax:1@1": {"width": 1366, "height": 768},
|
||||
"minimax:2@1": {"width": 1366, "height": 768},
|
||||
"minimax:2@3": {"width": 1366, "height": 768},
|
||||
@@ -1826,6 +1834,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
|
||||
"bytedance:1@1": "480p",
|
||||
"bytedance:5@1": null, // No resolution support
|
||||
"bytedance:5@2": null, // No resolution support
|
||||
"bytedance:seedance@1.5-pro": "480p",
|
||||
"minimax:1@1": "768p",
|
||||
"minimax:2@1": "768p",
|
||||
"minimax:2@3": "768p",
|
||||
|
||||
@@ -39,6 +39,14 @@ class RunwareBytedanceProviderSettings:
|
||||
"tooltip": "When enabled, speeds up generation by sacrificing some effects. Default: false. RTF: 25-28 (fast) vs 35 (normal). Supported by OmniHuman 1.5.",
|
||||
"default": False,
|
||||
}),
|
||||
"useAudio": ("BOOLEAN", {
|
||||
"tooltip": "Enable to include audio parameter in provider settings.",
|
||||
"default": False,
|
||||
}),
|
||||
"audio": ("BOOLEAN", {
|
||||
"tooltip": "Enable audio generation support when available.",
|
||||
"default": False,
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,11 +62,13 @@ class RunwareBytedanceProviderSettings:
|
||||
useCameraFixed = kwargs.get("useCameraFixed", False)
|
||||
useMaxSequentialImages = kwargs.get("useMaxSequentialImages", False)
|
||||
useFastMode = kwargs.get("useFastMode", False)
|
||||
useAudio = kwargs.get("useAudio", False)
|
||||
|
||||
# Get value parameters
|
||||
cameraFixed = kwargs.get("cameraFixed", False)
|
||||
maxSequentialImages = kwargs.get("maxSequentialImages", 1)
|
||||
fastMode = kwargs.get("fastMode", False)
|
||||
audio = kwargs.get("audio", False)
|
||||
|
||||
# Build settings dictionary - only include what is enabled
|
||||
settings = {}
|
||||
@@ -74,6 +84,10 @@ class RunwareBytedanceProviderSettings:
|
||||
# Add fastMode only if useFastMode is enabled
|
||||
if useFastMode:
|
||||
settings["fastMode"] = fastMode
|
||||
|
||||
# Add audio only if useAudio is enabled
|
||||
if useAudio:
|
||||
settings["audio"] = audio
|
||||
|
||||
# Clean up None values
|
||||
settings = {k: v for k, v in settings.items() if v is not None}
|
||||
|
||||
@@ -31,6 +31,7 @@ class videoModelSearch:
|
||||
"bytedance:1@1 (Seedance 1.0 Lite)",
|
||||
"bytedance:5@1 (OmniHuman 1)",
|
||||
"bytedance:5@2 (OmniHuman 1.5)",
|
||||
"bytedance:seedance@1.5-pro (Seedance 1.5 Pro)",
|
||||
],
|
||||
"MiniMax": [
|
||||
"minimax:1@1 (MiniMax 01 Base)",
|
||||
@@ -117,6 +118,7 @@ class videoModelSearch:
|
||||
"bytedance:1@1": {"width": 864, "height": 480},
|
||||
"bytedance:5@1": {"width": 1024, "height": 1024},
|
||||
"bytedance:5@2": {"width": 1024, "height": 1024},
|
||||
"bytedance:seedance@1.5-pro": {"width": 864, "height": 480},
|
||||
|
||||
# MiniMax Models
|
||||
"minimax:1@1": {"width": 1366, "height": 768},
|
||||
@@ -202,6 +204,7 @@ class videoModelSearch:
|
||||
"bytedance:1@1": "480p",
|
||||
"bytedance:5@1": None, # No resolution support (fixed 1024x1024)
|
||||
"bytedance:5@2": None, # No resolution support (fixed 1024x1024)
|
||||
"bytedance:seedance@1.5-pro": "480p",
|
||||
|
||||
# MiniMax Models (support both 768p and 720p, using 768p as primary)
|
||||
"minimax:1@1": "768p",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user