8972fed805
Replace the path+dropdown loader (and its non-rendering ui.gifs) with one node mirroring FoleyTuneVideoLoaderUpload: a `video` upload widget with drag-drop and an inline video preview, shipped via web/js/UniverSRVideo.js (adapted from FoleyTuneVideo.js) + WEB_DIRECTORY. The loader now outputs (UNIVERSR_VIDEO, AUDIO) so you can super-resolve the audio and remux it. Updated the example workflow output order and README. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
25 lines
1.1 KiB
Python
25 lines
1.1 KiB
Python
"""ComfyUI-UniverSR — vocoder-free audio super-resolution (8/12/16/24 kHz -> 48 kHz)."""
|
|
|
|
NODE_CLASS_MAPPINGS = {}
|
|
NODE_DISPLAY_NAME_MAPPINGS = {}
|
|
|
|
try:
|
|
from .nodes import NODE_CLASS_MAPPINGS as _sr_nodes, NODE_DISPLAY_NAME_MAPPINGS as _sr_display
|
|
NODE_CLASS_MAPPINGS.update(_sr_nodes)
|
|
NODE_DISPLAY_NAME_MAPPINGS.update(_sr_display)
|
|
except Exception as e: # surface errors in the ComfyUI log without crashing startup
|
|
print(f"[ComfyUI-UniverSR] Failed to load SR nodes: {e}")
|
|
|
|
try:
|
|
from .nodes_video import NODE_CLASS_MAPPINGS as _vid_nodes, NODE_DISPLAY_NAME_MAPPINGS as _vid_display
|
|
NODE_CLASS_MAPPINGS.update(_vid_nodes)
|
|
NODE_DISPLAY_NAME_MAPPINGS.update(_vid_display)
|
|
except Exception as e: # video nodes are optional (need ffmpeg/soundfile)
|
|
print(f"[ComfyUI-UniverSR] Failed to load video nodes: {e}")
|
|
|
|
# Serves web/js/UniverSRVideo.js — the inline video preview + upload widget.
|
|
# (./web + web/js/ + ../../../scripts imports mirrors the FoleyTune layout exactly.)
|
|
WEB_DIRECTORY = "./web"
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|