Skip to content

Commit 945b9e3

Browse files
authored
Merge branch 'main' into textfontimage
2 parents 7d50e41 + d69f3a0 commit 945b9e3

32 files changed

+95
-6363
lines changed

docs/nodes/communityNodes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,26 @@ To use a community node graph, download the the `.json` node graph file and load
2222
![b920b710-1882-49a0-8d02-82dff2cca907](https://github.com/invoke-ai/InvokeAI/assets/25252829/7660c1ed-bf7d-4d0a-947f-1fc1679557ba)
2323
![71a91805-fda5-481c-b380-264665703133](https://github.com/invoke-ai/InvokeAI/assets/25252829/f8f6a2ee-2b68-4482-87da-b90221d5c3e2)
2424

25+
--------------------------------
2526
### Ideal Size
2627

2728
**Description:** This node calculates an ideal image size for a first pass of a multi-pass upscaling. The aim is to avoid duplication that results from choosing a size larger than the model is capable of.
2829

2930
**Node Link:** https://github.com/JPPhoto/ideal-size-node
3031

32+
--------------------------------
33+
### Film Grain
34+
35+
**Description:** This node adds a film grain effect to the input image based on the weights, seeds, and blur radii parameters. It works with RGB input images only.
36+
37+
**Node Link:** https://github.com/JPPhoto/film-grain-node
38+
39+
--------------------------------
40+
### Image Picker
41+
42+
**Description:** This InvokeAI node takes in a collection of images and randomly chooses one. This can be useful when you have a number of poses to choose from for a ControlNet node, or a number of input images for another purpose.
43+
44+
**Node Link:** https://github.com/JPPhoto/film-grain-node
3145

3246
--------------------------------
3347
### Retroize

invokeai/app/invocations/baseinvocation.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,9 @@ def wrapper(cls: Type[GenericBaseInvocation]) -> Type[GenericBaseInvocation]:
580580
config=cls.__config__,
581581
)
582582
cls.__fields__.update({"type": invocation_type_field})
583-
cls.__annotations__.update({"type": invocation_type_annotation})
584-
583+
# to support 3.9, 3.10 and 3.11, as described in https://docs.python.org/3/howto/annotations.html
584+
if annotations := cls.__dict__.get("__annotations__", None):
585+
annotations.update({"type": invocation_type_annotation})
585586
return cls
586587

587588
return wrapper
@@ -615,7 +616,10 @@ def wrapper(cls: Type[GenericBaseInvocationOutput]) -> Type[GenericBaseInvocatio
615616
config=cls.__config__,
616617
)
617618
cls.__fields__.update({"type": output_type_field})
618-
cls.__annotations__.update({"type": output_type_annotation})
619+
620+
# to support 3.9, 3.10 and 3.11, as described in https://docs.python.org/3/howto/annotations.html
621+
if annotations := cls.__dict__.get("__annotations__", None):
622+
annotations.update({"type": output_type_annotation})
619623

620624
return cls
621625

invokeai/backend/stable_diffusion/image_degradation/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)