Commit Graph

5 Commits

Author SHA1 Message Date
Barry Downes
9c505aa38c Convert indentation from tabs to spaces, to match the codebase. 2023-08-06 10:41:08 +10:00
Barry Downes
dcb4bdfb9b Move ParseLogicError into comfy.parse.
Don't catch ParseError in comfy.choices.
2023-08-05 16:20:26 +10:00
Barry Downes
5a673ee930 Add non-strict parsing and the "strict" argument. 2023-08-05 15:54:12 +10:00
Barry Downes
6995bb435c Fix: text -> self.text in clone method. 2023-08-05 15:54:12 +10:00
Barry Downes
d91544b83c Reimplement dynamic prompts in the CLIPTextEncode node.
To achieve repeatability, a random seed input is added.

By this method, the original prompt text remains intact when
serializing and deserializing from a PNG or history.

But the random seed ensures the same choices will be made
when re-translating the "choices" in the original prompt
text, thus ensuring repeatability.

Also, choices can now be nested.
2023-08-01 03:15:44 +10:00