We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3a88b5 commit 0717422Copy full SHA for 0717422
1 file changed
runware/types.py
@@ -757,6 +757,14 @@ class ISettings(SerializableMixin):
757
audio: Optional[bool] = None
758
promptUpsampling: Optional[bool] = None
759
760
+ def __post_init__(self):
761
+ if self.sparseStructure is not None and isinstance(self.sparseStructure, dict):
762
+ self.sparseStructure = ISparseStructure(**self.sparseStructure)
763
+ if self.shapeSlat is not None and isinstance(self.shapeSlat, dict):
764
+ self.shapeSlat = IShapeSlat(**self.shapeSlat)
765
+ if self.texSlat is not None and isinstance(self.texSlat, dict):
766
+ self.texSlat = ITexSlat(**self.texSlat)
767
+
768
@property
769
def request_key(self) -> str:
770
return "settings"
0 commit comments