diff --git a/example_workflows/universr_super_resolution.json b/example_workflows/universr_super_resolution.json index b23411f..6f72520 100644 --- a/example_workflows/universr_super_resolution.json +++ b/example_workflows/universr_super_resolution.json @@ -49,7 +49,7 @@ {"name": "spectrogram", "type": "IMAGE", "links": [4], "slot_index": 1} ], "properties": {"Node name for S&R": "UniverSRSampler"}, - "widgets_values": [8000, "midpoint", 4, 1.5, 0, "randomize", 10.0, 0.5, 1.0, false, true] + "widgets_values": ["8000", "midpoint", 4, 1.5, 0, "randomize", 10.0, 0.5, 1.0, false, true] }, { "id": 4, diff --git a/example_workflows/universr_video.json b/example_workflows/universr_video.json index 426f8e5..fdaa91c 100644 --- a/example_workflows/universr_video.json +++ b/example_workflows/universr_video.json @@ -50,7 +50,7 @@ {"name": "spectrogram", "type": "IMAGE", "links": [], "slot_index": 1} ], "properties": {"Node name for S&R": "UniverSRSampler"}, - "widgets_values": [16000, "midpoint", 4, 2.0, 0, "randomize", 10.0, 0.5, 1.0, false, true] + "widgets_values": ["16000", "midpoint", 4, 2.0, 0, "randomize", 10.0, 0.5, 1.0, false, true] }, { "id": 4, diff --git a/nodes.py b/nodes.py index 1e8e79a..45849aa 100644 --- a/nodes.py +++ b/nodes.py @@ -118,8 +118,8 @@ class UniverSRSampler: "required": { "audio": ("AUDIO", {}), "model": ("UNIVERSR_MODEL", {}), - "input_sr": ([8000, 12000, 16000, 24000], { - "default": 8000, + "input_sr": (["8000", "12000", "16000", "24000"], { + "default": "8000", "tooltip": "Effective input bandwidth (Hz). Content is treated as valid up to " "input_sr/2 and regenerated above it. 8000 = genuine low-rate audio " "(strongest, 8 kHz->48 kHz). 16000 = brighten muffled audio above 8 kHz.",