360 Commits (main)

Author SHA1 Message Date
comfyanonymous 4f7a3cb6fb unet -> diffusion_models. 6 months ago
Matthew Turnshek 1770fc77ed
Implement support for taef1 latent previews (#4409)
* add taef1 handling to several places

* remove guess_latent_channels and add latent_channels info directly to flux model

* remove TODO

* fix numbers
6 months ago
pythongosssss e60e19b175
Add support for simple tooltips (#3842)
* Add support for simple tooltips

* Fix overflow

* Add tooltips for nodes in the default workflow

* new line

* Prevent potential crash

* PR feedback

* Hide tooltip when clicking (e.g. combo widget)

* Refactor tooltips, add node level support

* Fix

* move

* Fix test (and undo last change)

* Fixed indent

* Fix dom widgets, dont show tooltip if not over canvas
6 months ago
comfyanonymous a562c17e8a load_unet -> load_diffusion_model with a model_options argument. 6 months ago
comfyanonymous 369f459b20 Fix no longer working on old pytorch. 7 months ago
comfyanonymous a531001cc7 Add CLIPTextEncodeFlux. 7 months ago
comfyanonymous b4f6ebb2e8 Rename UNETLoader node to "Load Diffusion Model". 7 months ago
comfyanonymous d7430a1651 Add a way to load the diffusion model in fp8 with UNETLoader node. 7 months ago
comfyanonymous 1589b58d3e Basic Flux Schnell and Flux Dev model implementation. 7 months ago
comfyanonymous 6225a7827c Add CLIPTextEncodeHunyuanDiT.
Useful for testing what each text encoder does.
7 months ago
comfyanonymous 60383f3b64 Move controlnet nodes to conditioning/controlnet. 7 months ago
comfyanonymous 8270c62530 Add SetUnionControlNetType to set the type of the union controlnet model. 7 months ago
comfyanonymous 33346fd9b8 Fix bug with custom nodes on other drives. 7 months ago
comfyanonymous 391c1046cf More flexibility with text encoder return values.
Text encoders can now return other values to the CONDITIONING than the cond
and pooled output.
8 months ago
Chenlei Hu 83f70a88fb
Add __module__ to node info (#3936)
Use more explicit name 'python_module'

Parse abs ath

Move parse to nodes.py
8 months ago
comfyanonymous c3db344746 Fix ConditioningZeroOut when there is no pooled output. 8 months ago
comfyanonymous cedbc94cc0 Forgot this in last commit. 8 months ago
comfyanonymous bd2d3e27d7 Show comfy_extras warning at the end.
Remove code.
8 months ago
comfyanonymous 720b17442d Temporary revert. 8 months ago
Chenlei Hu 0e3dfd9e34
Use relative path for custom/extra node module name (#3944)
* Fix module name for comfy extra nodes

* Use module name relative to root dir
8 months ago
Chenlei Hu 9dd549e253
Add `--no-custom-node` cmd flag (#3903)
* Add --no-custom-node cmd flag

* nit
8 months ago
comfyanonymous 264caca20e ControlNetApplySD3 node can now be used to use SD3 controlnets. 8 months ago
Zhenyu Zhou 45e10cac19
feat: add gits scheduler (#3769) 8 months ago
comfyanonymous 04e8798c37 Improvements to the TAESD3 implementation. 8 months ago
Dr.Lt.Data df7db0e027
support TAESD3 (#3738) 8 months ago
comfyanonymous bb1969cab7 Initial support for the stable audio open model. 8 months ago
comfyanonymous 69c8d6d8a6 Single and dual clip loader nodes support SD3.
You can use the CLIPLoader to use the t5xxl only or the DualCLIPLoader to
use CLIP-L and CLIP-G only for sd3.
9 months ago
comfyanonymous 8c4a9befa7 SD3 Support. 9 months ago
comfyanonymous 6cd8ffc465 Reshape the empty latent image to the right amount of channels if needed. 9 months ago
comfyanonymous 0dccb4617d Remove some unnecessary arguments. 9 months ago
pythongosssss 91590adf04
Add webcam node (#3497)
* Add webcam node

* unused import
9 months ago
shawnington 22edd3add5
Fix to LoadImage Node for #3416 HDR images loading additional smaller… (#3454)
* Fix to LoadImage Node for #3416 HDR images loading additional smaller images. 

Added a blocking if statement  in the ImageSequence.Iterator that checks if subsequent images after the first match dimensionally, and prevent them from being appended to output_images if they do not match. 

This does not fix or change current behavior for PIL 10.2.0 where the images are loaded at the same size, but it does for 10.3.0 where they are loaded at their correct smaller sizes.

* added list of excluded formats that should return 1 image

added an explicit check for the image format so that additional formats can be added to the list that have problematic behavior.
10 months ago
shawnington 0fecfd2b1a
Added generic wrapper function node_helpers.pillow to fix PIL issues #4472 and #2445 (#3422)
* Update node_helpers.py to use generic pillow wrapper to resolve multiple meta-data related issues.

replaced open_image function with a generic pillow function that takes Pil functions as a dependency injection and applies the ImageFile.LOAD_TRUNCATED_IMAGES try except fix to them. 

This provides an extensible function to handle related errors that can wrap offending functions when discovered without the need to repeat code.

* Update a few Pil functions to use node_helpers.pillow wrapper

Update a Pil function calls in a few locations to use the generic node_helpers.pillow wrapper that takes the function as a dependency injection and uses the try except method with ImageFIle.LOAD_TRUNCATED_IMAGES solution

* Corrected comment in issue #s fixed.

* Update node_helpers.py to remove import of Image from PIL

import of Image is no longer required as functions are Injected
10 months ago
comfyanonymous c33412288f Fix issue with loading some JPG: #3416 10 months ago
shawnington 0d45efb7d6
Fixed Issue with LoadImage node when loading PNG files with embedded ICC profiles. (#3316)
* Fix issue with how PIL loads small PNG files nodes.py

Added flag to prevent ValueError: Decompressed Data Too Large
when loading PNG images with large meta data such as large embedded color profiles

* Update LoadImage node to fix error when loading PNG's in nodes.py

Fixed Value Error: Decompressed Data Too Large thrown by PIL when attempting to opening PNG files with large embedded ICC colorspaces by setting the follow flag to true when loading png images:  ImageFile.LOAD_TRUNCATED_IMAGES = True

* Update node_helpers.py to include open_image helper function

open_image includes try except to catch Pillow Value Errors that occur when large ICC profiles are embedded in images.

* Update LoadImage node to use open_image helper function inplace of Image.open

open_image helper function in node_helpers.py  fixes a Pillow error when attempting to open images with large embedded ICC profiles by adding an exception handler to load the image with truncated meta data if regular loading is not possible.
10 months ago
comfyanonymous eecd69b53a Add a SamplerLCMUpscale node.
This sampler is an LCM sampler that upscales the latent during sampling.

It can be used to generate at a higher resolution with an LCM model very
quickly.

To try it use it with a basic 5 step LCM workflow with scale_ratio 1.5 or
2.0
10 months ago
comfyanonymous 059773a6df Add some nodes to multiply the attention in UNet and Clip models. 10 months ago
comfyanonymous 27d5808fc4 Increase max lora strength to 100.0 10 months ago
comfyanonymous 644a3ae58d Implement Align Your Steps as a AlignYourStepsScheduler node. 10 months ago
comfyanonymous 719fb2c81d Add basic PAG node. 10 months ago
comfyanonymous 744ac944db Don't make dynamicPrompts the default on multiline string inputs.
This should be less confusing to those who want to use multiline input
without them.
10 months ago
comfyanonymous 4201181b35 Add ModelMergeSD1, ModelMergeSD2 and ModelMergeSDXL. 11 months ago
comfyanonymous d644b6bcd8 Cleanup some more conditioning nodes. 11 months ago
comfyanonymous 80bda6c163 Cleanup a few conditioning nodes. 11 months ago
comfyanonymous 1f8d8e6c77 Add InstructPixToPixConditioning node. 11 months ago
comfyanonymous 96b4c757cf Add log to debug custom nodes that hang when imported. 11 months ago
comfyanonymous 11838e60f4 Increase the max resolution. 11 months ago
comfyanonymous d14bdb1896 Revert, NOTE: this will be removed again soon please fix your nodes. 11 months ago
comfyanonymous 0c55f16c9e Remove code that should be useless now. 11 months ago
comfyanonymous 2a813c3b09 Switch some more prints to logging. 12 months ago