fix: use object.__setattr__ to bypass frozen dataclass check for quality settings (v1.4.67)
This commit is contained in:
@@ -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
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user