Files
ComfyUI-Prompt-Calibrator/__init__.py
T
EthanfelandClaude Opus 4.8 57b459b956 Add SxCP Audio Wave + Segments: interactive waveform node (upload/play/click-segments)
New node with a JS widget (web/audio_wave.js): upload an audio clip, play it, and click
the waveform to place segment boundaries (click add / drag move / dblclick note /
shift|right-click delete). Boundaries+notes serialize to a hidden segments_json that
drives Python segmentation (falls back to auto-split / notes syntax). Python node
(nodes/audio_wave_segments.py) loads the file (torchaudio/soundfile/librosa), builds
segments from the boundaries, and outputs waveform_image + audio_summary + AUDIO — same
contract as Audio Prompt Guide, so it feeds chat mode the same way. _attach_notes now
merges (keeps clicked notes). WEB_DIRECTORY re-enabled. JS is a first cut — needs testing
in ComfyUI (console logs on error); the Python node works standalone via segments_json/notes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 22:31:45 +02:00

25 lines
948 B
Python

"""ComfyUI-Prompt-Calibratror — VLM-as-judge prompt calibration loop."""
from .nodes.qwen_judge import (
NODE_CLASS_MAPPINGS as _JUDGE_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _JUDGE_NAMES,
)
from .nodes.receptor import (
NODE_CLASS_MAPPINGS as _RECEPTOR_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _RECEPTOR_NAMES,
)
from .nodes.audio_guide import (
NODE_CLASS_MAPPINGS as _AUDIO_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _AUDIO_NAMES,
)
from .nodes.audio_wave_segments import (
NODE_CLASS_MAPPINGS as _WAVE_CLASSES,
NODE_DISPLAY_NAME_MAPPINGS as _WAVE_NAMES,
)
NODE_CLASS_MAPPINGS = {**_JUDGE_CLASSES, **_RECEPTOR_CLASSES, **_AUDIO_CLASSES, **_WAVE_CLASSES}
NODE_DISPLAY_NAME_MAPPINGS = {**_JUDGE_NAMES, **_RECEPTOR_NAMES, **_AUDIO_NAMES, **_WAVE_NAMES}
WEB_DIRECTORY = "./web" # serves web/audio_wave.js (the waveform + segment widget)
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]