fix: use object.__setattr__ to bypass frozen dataclass check for quality settings (v1.4.67)

This commit is contained in:
Hawk Lee
2025-12-28 20:29:05 +08:00
parent dd8410a500
commit b83f77a75b
2 changed files with 10 additions and 4 deletions
+9 -3
View File
@@ -367,9 +367,15 @@ class AIIA_Audio_Enhance:
# Also inject into .hp (HyperParameters) if available
if hasattr(_cached_enhancer, "hp"):
_cached_enhancer.hp.nfe = nfe
_cached_enhancer.hp.solver = solver.lower()
_cached_enhancer.hp.tau = tau
try:
# Fix FrozenInstanceError: .hp is a frozen dataclass
object.__setattr__(_cached_enhancer.hp, 'nfe', nfe)
object.__setattr__(_cached_enhancer.hp, 'solver', solver.lower())
object.__setattr__(_cached_enhancer.hp, 'tau', tau)
except Exception as e:
print(f"[AIIA] Warning: Failed to force set hp params: {e}")
# Fallback: Maybe replace hp?
pass
# Also inject directly (just in case)
_cached_enhancer.nfe = nfe
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "aiia"
description = "A suite of powerful, intuitive, and highly customizable nodes for ComfyUI, featuring a high-performance Media Browser and OOM-safe video tools."
version = "1.4.66"
version = "1.4.67"
license = {file = "LICENSE"}
readme = "README.md"
authors = [