Files
havvk-ComfyUI_AIIA/debug_sr.py
T
Hawk Lee e21a5c9eba fix: restore file permissions to 755 (reverts eff537d mode change)
The eff537d commit changed all files from 755 to 644.
Restores original executable permissions.
2026-02-16 12:15:32 +08:00

25 lines
714 B
Python
Executable File

import sys
import os
import torch
# Add ComfyUI_AIIA to path to import voxcpm
sys.path.append("/app/ComfyUI/custom_nodes/ComfyUI_AIIA")
sys.path.append("/app/ComfyUI/custom_nodes/ComfyUI_AIIA/voxcpm_core")
from voxcpm.core import VoxCPM
try:
path = "/app/ComfyUI/models/voxcpm/VoxCPM1.5"
print(f"Loading VoxCPM from {path}")
model = VoxCPM(path, optimize=False, enable_denoiser=False)
print(f"--- DIAGNOSTICS ---")
print(f"Model VAE Sample Rate: {model.tts_model.sample_rate}")
print(f"Model VAE Config Object: {model.tts_model.audio_vae.config}")
print(f"-------------------")
except Exception as e:
print(f"Error: {e}")
import traceback
traceback.print_exc()