InvokeAI/invokeai/app/invocations
skunkworxdark 4e05dcfe2e
Prompts from file support nodes (#3964)
* New classes to support the PromptsFromFileInvocation Class
- PromptPosNegOutput
- PromptSplitNegInvocation
- PromptJoinInvocation
- PromptReplaceInvocation

* - Added PromptsToFileInvocation,
- PromptSplitNegInvocation
  - now counts the bracket depth so ensures it cout the numbr of open and close brackets match.
  - checks for escaped [ ] so ignores them if escaped e.g \[
- PromptReplaceInvocation - now has a user regex. and no regex in made caseinsesitive

* Update prompt.py

created class PromptsToFileInvocationOutput and use it in PromptsToFileInvocation instead of BaseInvocationOutput

* Update prompt.py

* Added schema_extra title and tags  for PromptReplaceInvocation, PromptJoinInvocation,  PromptSplitNegInvocation and PromptsToFileInvocation

* Added PTFileds Collect and Expand

* update to nodes v1

* added ui_type to file_path for PromptToFile

* update params for the primitive types used, remove the ui_type filepath, promptsToFile now only accepts collections until a fix is available

* updated the parameters for the StringOutput primitive

* moved the prompt tools nodes out of the prompt.py into prompt_tools.py

* more rework for v1

* added github link

* updated to use "@invocation"

* updated tags

* Adde new nodes PromptStrength and PromptStrengthsCombine

* chore: black

* feat(nodes): add version to prompt nodes

* renamed nodes from prompt related to string related. Also moved them into a strings.py file.  Also moved and renamed the PromptsFromFileInvocation from prompt.py to strings.py.  The PTfileds still remain in the Prompt_tool.py for now.

* added , version="1.0.0" to the invocations

* removed the PTField related nodes and the prompt-tools.py file all new nodes now live in the

* formatted prompt.py and strings.py with Black and fixed silly mistake in the new StringSplitInvocation

* - Revert Prompt.py back to original
- Update strings.py to be only StringJoin, StringJoinThre, StringReplace, StringSplitNeg, StringSplit

* applied isort to imports

* fix(nodes): typos in `strings.py`

---------

Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
Co-authored-by: Millun Atluri <Millu@users.noreply.github.com>
2023-09-13 08:06:38 +00:00
..
__init__.py Run python black 2023-07-28 09:46:44 -04:00
baseinvocation.py feat(nodes): add InputField.ui_choice_labels: dict[str, str] 2023-09-13 16:50:25 +10:00
collections.py feat(nodes): add version to node schemas 2023-09-04 19:08:18 +10:00
compel.py isort wip 2023-09-12 13:01:58 -04:00
controlnet_image_processors.py isort wip 2023-09-12 13:01:58 -04:00
cv.py Apply black, isort, flake8 2023-09-12 13:01:58 -04:00
image.py Added crop option to ImagePasteInvocation (#4507) 2023-09-12 21:31:35 +00:00
infill.py fix(nodes): downscale and resample_mode are not optional 2023-09-05 11:23:13 +10:00
latent.py Apply black, isort, flake8 2023-09-12 13:01:58 -04:00
math.py chore: flake8 2023-09-13 16:50:25 +10:00
metadata.py feat(nodes): add version to node schemas 2023-09-04 19:08:18 +10:00
model.py feat(nodes): add version to node schemas 2023-09-04 19:08:18 +10:00
noise.py feat(nodes): add version to node schemas 2023-09-04 19:08:18 +10:00
onnx.py isort wip 2023-09-12 13:01:58 -04:00
param_easing.py isort wip 2023-09-12 13:01:58 -04:00
primitives.py feat(nodes): add version to node schemas 2023-09-04 19:08:18 +10:00
prompt.py feat(nodes): add version to node schemas 2023-09-04 19:08:18 +10:00
sdxl.py feat(nodes): add version to node schemas 2023-09-04 19:08:18 +10:00
strings.py Prompts from file support nodes (#3964) 2023-09-13 08:06:38 +00:00
upscale.py isort wip 2023-09-12 13:01:58 -04:00