Commit Graph

204 Commits

Author SHA1 Message Date
Guo Y.K
51536ab543 nodes: add ImagePadForOutpaint 2023-03-23 23:33:35 +08:00
comfyanonymous
70d7791299 Lower PNG compression for more speed.
After some quick tests compress_level=4 seems to give the best compression
performance ratio for stable diffusion images.

It's 10x faster than max compression for an image size increase of only
2.5%.
2023-03-23 00:40:48 -04:00
comfyanonymous
22bbcbc73c Increase max res to 8192x8192 since 4096x4096 wasn't enough for some. 2023-03-22 12:22:48 -04:00
comfyanonymous
186e1324bd Fix bug with CLIPLoader. 2023-03-21 03:11:18 -04:00
comfyanonymous
757a39cdd9 Small fix. 2023-03-20 14:55:28 -04:00
comfyanonymous
8cdef9e8a1 Merge branch 'save-images' of https://github.com/m957ymj75urz/ComfyUI 2023-03-20 14:29:45 -04:00
m957ymj75urz
0581bd923f rework payload from server 2023-03-19 12:54:29 +01:00
comfyanonymous
06c7a9b406 Support multiple paths for embeddings. 2023-03-18 03:08:43 -04:00
comfyanonymous
d5bf8038c8 Merge T2IAdapterLoader and ControlNetLoader.
Workflows will be auto updated.
2023-03-17 18:17:59 -04:00
comfyanonymous
ee6cca1d0f Add folder_paths so models can be in multiple paths. 2023-03-17 18:01:11 -04:00
comfyanonymous
c34d4e939d Fix VAEEncodeForInpaint modifying source image. 2023-03-16 17:10:08 -04:00
m957ymj75urz
d0a98fc078 fixes for specific paths 2023-03-16 19:48:59 +01:00
comfyanonymous
46d01dd049 Fix bug when applying controlnet to negative prompt. 2023-03-15 17:58:13 -04:00
m957ymj75urz
66981a5bea resolve conflict with the new PreviewImage node 2023-03-15 12:10:45 +01:00
m957ymj75urz
ccf24a189e Merge branch 'master' into save-images 2023-03-15 10:48:15 +00:00
comfyanonymous
30be467b41 Make it more clear the recommended way to update the standalone build. 2023-03-14 19:14:18 -04:00
pythongosssss
dabe6816b7 tidy 2023-03-14 19:42:28 +00:00
pythongosssss
e8ef9a9210 Changed flag to new node 2023-03-14 19:28:07 +00:00
m957ymj75urz
dc041b42fc switch to realpath to check path traversal 2023-03-14 09:27:53 +01:00
m957ymj75urz
7f2412a064 remove subfolder widget and use filename_prefix 2023-03-14 09:08:54 +01:00
pythongosssss
0c128cb91d Added ability to save images to temp dir 2023-03-13 19:34:05 +00:00
m957ymj75urz
ffee6171dd fix makedirs on save 2023-03-12 20:23:46 +01:00
m957ymj75urz
dff33fe111 can specify a subfolder in the SaveImage node 2023-03-12 19:51:39 +01:00
comfyanonymous
9c4c183708 Put image upscaling nodes in image/upscaling category. 2023-03-11 18:10:36 -05:00
comfyanonymous
d777b2f4a9 Add a VAEEncodeTiled node. 2023-03-11 15:28:15 -05:00
comfyanonymous
b5cde7df94 Take some code from chainner to implement ESRGAN and other upscale models. 2023-03-11 13:09:28 -05:00
comfyanonymous
6b035cc30e Small refactor of custom node loading code. 2023-03-11 12:49:41 -05:00
comfyanonymous
c5f4e07c34 Prevent potential int overflow in SaveImage 2023-03-11 12:48:28 -05:00
comfyanonymous
40ac0f9184 Make the LoadImage node output the alpha as a mask. 2023-03-09 14:07:55 -05:00
pythongosssss
f8c053a5c7 Remove random spaces 2023-03-09 18:18:08 +00:00
pythongosssss
9ee1eb8dc5 Changed to upload to input dir
Fixed jpg
Added dupe support
Changed to use existing nodes
2023-03-09 17:57:59 +00:00
pythongosssss
1fcec7070e Added UploadImage+Mask nodes 2023-03-08 22:07:44 +00:00
comfyanonymous
0ed76ebbd9 Try to fix import issue. 2023-03-06 14:41:42 -05:00
pythongosssss
ec1cfb55fe Merge remote-tracking branch 'origin/master' into frontendrefactor 2023-03-06 17:02:34 +00:00
comfyanonymous
ca7e2e3827 Add --cpu to use the cpu for inference. 2023-03-06 10:50:50 -05:00
comfyanonymous
4d6ea1bdae It's more logical for the StyleModelApply to append it directly. 2023-03-06 01:48:18 -05:00
comfyanonymous
75f54df180 A tiny bit of reorganizing. 2023-03-06 01:30:17 -05:00
comfyanonymous
663fa6eafd Implement support for t2i style model.
It needs the CLIPVision model so I added CLIPVisionLoader and CLIPVisionEncode.

Put the clip vision model in models/clip_vision
Put the t2i style model in models/style_models

StyleModelLoader to load it, StyleModelApply to apply it
ConditioningAppend to append the conditioning it outputs to a positive one.
2023-03-05 18:39:25 -05:00
pythongosssss
c2ee650ce4 Merge remote-tracking branch 'origin' into frontendrefactor 2023-03-03 19:30:24 +00:00
comfyanonymous
1500dd58c4 stop_at_clip_layer can be set in CLIPSetLastLayer so it can be removed
from the CLIPLoader node.
2023-03-03 14:27:55 -05:00
pythongosssss
dfe25a9eaa Adding built in extensions + example 2023-03-03 18:28:34 +00:00
comfyanonymous
f21b0255a0 Move the CheckpointLoaderSimple to the right section. 2023-03-03 13:09:44 -05:00
comfyanonymous
c195dab61c Add a node to set CLIP skip.
Use a more simple way to detect if the model is -v prediction.
2023-03-03 13:04:36 -05:00
comfyanonymous
5608730809 To be really simple CheckpointLoaderSimple should pick the right type. 2023-03-03 11:07:10 -05:00
comfyanonymous
8a2699b47d New CheckpointLoaderSimple to load checkpoints without a config. 2023-03-03 03:37:35 -05:00
comfyanonymous
40fe09c7b8 Add a button to interrupt processing to the ui. 2023-03-02 15:24:51 -05:00
comfyanonymous
b59b82a73b Add a way to interrupt current processing in the backend. 2023-03-02 14:42:03 -05:00
comfyanonymous
573b8c18fe Outpainting actually works now. 2023-02-27 12:02:23 -05:00
pythongosssss
de0b83f6ac Merge branch 'comfyanonymous:master' into socketrework 2023-02-25 12:00:22 +00:00
comfyanonymous
4a31343a3d Add a T2IAdapterLoader node to load T2I-Adapter models.
They are loaded as CONTROL_NET objects because they are similar.
2023-02-25 01:24:56 -05:00
comfyanonymous
a4778b6a31 Added an experimental VAEDecodeTiled.
This decodes the image with the VAE in tiles which should be faster and
use less vram.

It's in the _for_testing section so I might change/remove it or even
add the functionality to the regular VAEDecode node depending on how
well it performs which means don't depend too much on it.
2023-02-24 02:10:10 -05:00
pythongosssss
caaba5aef5 Added workflow history
Moved socket output updates to all node executions
Made image rendering on nodes more generic
2023-02-23 20:12:57 +00:00
pythongosssss
436ac5342c Merge branch 'comfyanonymous:master' into socketrework 2023-02-23 20:07:30 +00:00
comfyanonymous
f1b122ba02 Add a node to load diff controlnets. 2023-02-22 23:22:03 -05:00
comfyanonymous
2847980304 Add a node to invert the colours of images.
Might be useful for controlnets.
2023-02-22 21:57:56 -05:00
pythongosssss
c4748262eb Moved api out to server
Reworked sockets to use socketio
Added progress to nodes
Added highlight to active node
Added preview to saveimage node
2023-02-21 19:29:49 +00:00
comfyanonymous
9cd0189e7e ControlNetApply now stacks.
It can be used to apply multiple control nets at the same time.
2023-02-21 01:18:53 -05:00
comfyanonymous
6276087654 Merge branch 'master' into m957ymj75urz-dynamic-prompting 2023-02-20 23:49:55 -05:00
comfyanonymous
9827aaf4c5 Fix for relative imports in custom nodes. 2023-02-19 12:00:05 -05:00
m957ymj75urz
3543e4cac0 Add basic dynamic prompting with seeding on CLIPTextEncode node 2023-02-17 22:37:03 +01:00
comfyanonymous
66f7b2c3af Sort images on LoadImageMask node. 2023-02-17 13:17:09 -05:00
comfyanonymous
5d4109d098 Fix a few issues with the custom_nodes PR.
There only needs to be one example in the folder.
2023-02-17 11:19:49 -05:00
Fannovel16
c473426165 Merge branch 'comfyanonymous:master' into master 2023-02-17 18:02:52 +07:00
Hacker 17082006
57876b689f . 2023-02-17 17:59:16 +07:00
comfyanonymous
86be49f832 Sort the list of input images. 2023-02-16 21:01:46 -05:00
comfyanonymous
9999b1e198 Add a way to control controlnet strength. 2023-02-16 18:08:01 -05:00
comfyanonymous
b5b68268ee Add ControlNet support. 2023-02-16 10:38:08 -05:00
comfyanonymous
6d0f92bcb2 Use inpaint models the proper way by using VAEEncodeForInpaint. 2023-02-15 20:44:51 -05:00
comfyanonymous
d19db11a2c Add a LoadImageMask node to load one colour channel in an image as a mask. 2023-02-15 17:39:42 -05:00
comfyanonymous
b9eeb44df7 Add a SetLatentNoiseMask node.
LATENT is now a dict that can contain properties.
2023-02-15 16:58:55 -05:00
Hacker 17082006
04c1153c0b Edit comment 2023-02-15 21:50:18 +07:00
Hacker 17082006
62727e1135 Done custom_node import error fixing 2023-02-15 21:48:10 +07:00
Hacker 17082006
753a1200dc Fix bug 2023-02-15 21:15:54 +07:00
Hacker 17082006
493671574e Adding some suggests from the author 2023-02-14 22:20:30 +07:00
Hacker 17082006
721f8510af Change the words a bit 2023-02-13 18:24:54 +07:00
Hacker 17082006
f3c6d7adf2 . 2023-02-13 18:19:42 +07:00
Hacker 17082006
5ce4b9eca3 Add custom node feature 2023-02-13 18:17:40 +07:00
comfyanonymous
05ad64d22c Add a feather option to the latent composite node. 2023-02-12 13:01:52 -05:00
BazettFraga
642516a3a6 create output dir if none is present 2023-02-09 12:49:31 -05:00
comfyanonymous
1d9ec62cfb Use absolute output directory path. 2023-02-09 09:59:43 -05:00
BazettFraga
e58887dfa7 forgot windows does double backslashes for paths due to its use as escape char. 2023-02-09 01:30:06 +01:00
BazettFraga
81082045c2 add recursive_search, swap relevant os.listdirs 2023-02-09 01:22:33 +01:00
comfyanonymous
3e22815a9a Fix k_diffusion not getting imported from the folder. 2023-02-08 16:29:22 -05:00
comfyanonymous
a84cd0d1ad Don't unload/reload model from CPU uselessly. 2023-02-08 03:40:43 -05:00
comfyanonymous
1de5aa6a59 Add a CLIPLoader node to load standalone clip weights.
Put them in models/clip
2023-02-05 15:20:18 -05:00
comfyanonymous
4225d1cb9f Add a basic ImageScale node.
It's pretty much the same as the LatentUpscale node for now but for images
in pixel space.
2023-02-04 16:01:01 -05:00
comfyanonymous
bff0e11941 Add a LatentCrop node. 2023-02-04 15:21:46 -05:00
comfyanonymous
149a4de3f2 Fix potential issue if exception happens when patching model. 2023-02-03 03:55:50 -05:00
comfyanonymous
ef90e9c376 Add a LoraLoader node to apply loras to models and clip.
The models are modified in place before being used and unpatched after.
I think this is better than monkeypatching since it might make it easier
to use faster non pytorch unet inference in the future.
2023-02-03 02:46:24 -05:00
comfyanonymous
fef41d0a72 Add LatentComposite node.
This can be used to "paste" one latent image on top of the other.
2023-01-31 03:35:03 -05:00
comfyanonymous
3fa009f4cc Add a LatentFlip node. 2023-01-31 03:28:38 -05:00
comfyanonymous
69df7eba94 Add KSamplerAdvanced node.
This node exposes more sampling options and makes it possible for example
to sample the first few steps on the latent image, do some operations on it
 and then do the rest of the sampling steps. This can be achieved using the
start_at_step and end_at_step options.
2023-01-31 03:09:38 -05:00
comfyanonymous
f8f165e2c3 Add a LatentRotate node. 2023-01-31 02:28:07 -05:00
comfyanonymous
f73e57d881 Add support for textual inversion embedding for SD1.x CLIP. 2023-01-29 18:46:44 -05:00
comfyanonymous
2706c0b7a5 Some VAEs come in .pt files. 2023-01-28 12:28:29 -05:00
comfyanonymous
21eb33f233 Right category for latent upscale node. 2023-01-27 14:11:57 -05:00
comfyanonymous
2a87f6630d Some categories for the nodes. 2023-01-26 12:23:15 -05:00
comfyanonymous
c4b02059d0 Add ConditioningSetArea node.
to apply conditioning/prompts only to a specific area of the image.

Add ConditioningCombine node.
so that multiple conditioning/prompts can be applied to the image at the
same time
2023-01-26 12:06:48 -05:00
comfyanonymous
463d0d0828 Add a center crop option to latent upscale node. 2023-01-24 17:28:44 -05:00
comfyanonymous
c1eac7bab2 Add filename_prefix to SaveImage node. 2023-01-24 03:05:04 -05:00
comfyanonymous
a34cde08cb Nodes now support single line string properties.
Resize nodes automatically if they are too small because of added properties.
2023-01-24 02:10:12 -05:00
comfyanonymous
9baa48cb33 Add IS_CHANGED method to nodes to check if nodes should be executed again.
LoadImage.IS_CHANGED returns the hash of the image so it will execute again
if the image changed on the disk.
2023-01-22 21:46:16 -05:00
comfyanonymous
15f8da2849 Add a LoadImage node to load images for img2img. 2023-01-22 15:07:18 -05:00
comfyanonymous
220afe3310 Initial commit. 2023-01-16 22:37:14 -05:00