239 Commits (0cb6dac943a2550f6e5c5cf4f99a64b40c89ac80)

Author SHA1 Message Date
comfyanonymous acff543d66 Remove useless code. 2 years ago
comfyanonymous b0505eb7ab Return right type when none specified in upload route.
Switch time.time to time.perf_counter for custom node import times.
2 years ago
comfyanonymous db4d3a8494 Print if custom nodes imported successfully or not. 2 years ago
comfyanonymous 2ac744f662 Print all custom node import times. 2 years ago
comfyanonymous 92bf1cb61e Change message. 2 years ago
comfyanonymous cf439709b6 Load nodes in comfy_extras before custom nodes.
Change the slow import message.
2 years ago
comfyanonymous cb4b822398 Print custom nodes that take too much time to import. 2 years ago
BlenderNeko 1201d2eae5
Make nodes map over input lists (#579)
* allow nodes to map over lists

* make work with IS_CHANGED and VALIDATE_INPUTS

* give list outputs distinct socket shape

* add rebatch node

* add batch index logic

* add repeat latent batch

* deal with noise mask edge cases in latentfrombatch
2 years ago
comfyanonymous c5c0ea666f noise_mask in latent should be in a single format. 2 years ago
comfyanonymous d43e45ce62 Remove print. 2 years ago
comfyanonymous 850daf0416 Masked editor changes.
Add a way to upload to subfolders.

Clean up code.

Fix some issues.
2 years ago
Dr.Lt.Data ae08fdb999
Clipspace Menu and MaskEditor application. (#548)
* Add clipspace feature.
* feat: copy content to clipspace
* feat: paste content from clipspace

Extend validation to allow for validating annotated_path in addition to other parameters.

Add support for annotated_filepath in folder_paths function.

Generalize the '/upload/image' API to allow for uploading images to the 'input', 'temp', or 'output' directories.

* rename contentClipboard -> clipspace

* Do deep copy for imgs on copy to clipspace.

* mask painting on clipspace

* add original_imgs into clipspace
* Preserve the original image when 'imgs' are modified

* robust patch & refactoring folder_paths about annotated_filepath

* wip

* Only show the Paste menu if the ComfyApp.clipspace is not empty

* clipspace feature added
maskeditor feature added

* instant refresh on paste

force triggering 'changed' on paste action

* enhance mask painting

smooth drawing
add brush_size +/- button

* robust patch

use mouseup event

* robust patch

again...

* subfolder fix on paste logic

attach subfolder if subfolder isn't empty

* event listener patch

add ], [ key event for brush size
remove listener on close

* Fix button positioning issue related to window height.
Change brush size from button to slider.

* clean commit

* clean code

* various bug fixes

* paste action
- prevent opening upload popup
- ensure rendering after widget_value update

* view api update
- support annotated_filepath

* maskeditor layout
- prevent covering button by hidden div

* remove dbg message

* Add cursor functionality to display brush size

* refactor: Replace brush preview feature with missionfloyd implementation

* missionfloyd implementation
* hiding brush preview off the canvas
* change brush size on wheel event

* keyup -> keydown event

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* Add support for channel-specific image data retrieval in /view API to fix alpha mask loading issue

When loading an image with an alpha mask in JavaScript canvas, there is an issue where the alpha and RGB channels are premultiplied. To avoid reliance on JavaScript canvas, I added support for channel-specific image data retrieval in the "/view" API. This allows us to retrieve data for each channel separately and fix the alpha mask loading issue. The changes have been committed to the repository.

* Enable brush preview for key and slider events

* optimize

* preview fix

* robust patch

* fix copy (clipspace) action
imgs[0] copy -> whole imgs copy

* support batch images on clipspace, maskeditor

* copy/paste bug fixes for batch images
enhance selector preview on clipspace menu
add img_paste_mode option into clipspace menu

* crash fix

* print message if clipspace content cannot editable

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* make default img_paste_mode to 'selected'

refactor space -> tab

* save clipspace files to input/clipspace instead of temp

* show "clipspace/filename.png" instead of 'filename.png [clipspace]' in LoadImage/LoadImageMask

* refresh fix related to FILE_COMBO

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* adjust margin based on missionfloyd impelements

* mouse event -> pointer event

* pen, touch, mouse drawing patched and tested

* Update web/extensions/core/maskeditor.js

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>

* add comment about touch event.

---------

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>
2 years ago
comfyanonymous 678f933d38 maximum_batch_area for xformers.
Remove useless code.
2 years ago
comfyanonymous 908dc1d5a8 Add a total_steps value to sampler callback. 2 years ago
comfyanonymous 93c64afaa9 Use sampler callback instead of tqdm hook for progress bar. 2 years ago
comfyanonymous ba8a4c3667 Change latent resolution step to 8. 2 years ago
comfyanonymous 35f636b6c7 Expose grow_mask_by in VAEEncodeForInpaint.
The mask is dilated by grow_mask_by pixels after being applied to the pixel
space image. This helps reduce seams caused by inpainting. Higher value
means less seams.
2 years ago
comfyanonymous 0aa667ed33 Fix ConditioningAverage. 2 years ago
FizzleDorf 29c8f1a344
Conditioning Average (#495)
* first commit

* fixed a bunch of things missing in initial commit.

* parameters renamed for clarity

* renamed node, attempted update cond list

* to_strength removed, it is now normalized

* removed comments and prints. Attempted to apply to every cond in list again but no luck

* fixed repeating frames after batch using deepcopy

* Revert "fixed repeating frames after batch using deepcopy"

This reverts commit 1086d6a0e1f5c5c9247312872402ff8e60358fe1.

* Rewrite addWeighted to use torch.mul iteratively.

---------

Co-authored-by: City <125218114+city96@users.noreply.github.com>
2 years ago
comfyanonymous c66db06763 Make ConditioningSetMask area option a bit more clear.
Make ConditioningSetArea override the set_area_to_bounds.
2 years ago
comfyanonymous 071011aebe Mask strength should be separate from area strength. 2 years ago
Jacob Segal af02393c2a Default to sampling entire image
By default, when applying a mask to a condition, the entire image will
still be used for sampling. The new "set_area_to_bounds" option on the
node will allow the user to automatically limit conditioning to the
bounds of the mask.

I've also removed the dependency on torchvision for calculating bounding
boxes. I've taken the opportunity to fix some frustrating details in the
other version:
1. An all-0 mask will no longer cause an error
2. Indices are returned as integers instead of floats so they can be
   used to index into tensors.
2 years ago
Jacob Segal e214c917ae Add Condition by Mask node
This PR adds support for a Condition by Mask node. This node allows
conditioning to be limited to a non-rectangle area.
2 years ago
comfyanonymous aa57136dae Some fixes to the batch masks PR. 2 years ago
comfyanonymous c7c1f0d074 Merge branch 'multiple_inpaint_masks' of https://github.com/guill/ComfyUI
# Conflicts:
#	nodes.py
2 years ago
comfyanonymous c50208a703 Refactor more code to sample.py 2 years ago
comfyanonymous a2236a0c2a Merge branch 'master' of https://github.com/BlenderNeko/ComfyUI 2 years ago
BlenderNeko d9b1595f85 made sample functions more explicit 2 years ago
comfyanonymous ccad603b2e Add a way for nodes to validate their own inputs. 2 years ago
ltdrdata f7a8218814
Add clipspace feature. (#541)
* Add clipspace feature.
* feat: copy content to clipspace
* feat: paste content from clipspace

Extend validation to allow for validating annotated_path in addition to other parameters.

Add support for annotated_filepath in folder_paths function.

Generalize the '/upload/image' API to allow for uploading images to the 'input', 'temp', or 'output' directories.

* rename contentClipboard -> clipspace

* Do deep copy for imgs on copy to clipspace.

* add original_imgs into clipspace
* Preserve the original image when 'imgs' are modified

* robust patch & refactoring folder_paths about annotated_filepath

* Only show the Paste menu if the ComfyApp.clipspace is not empty

* instant refresh on paste

force triggering 'changed' on paste action

* subfolder fix on paste logic

attach subfolder if subfolder isn't empty

---------

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
2 years ago
BlenderNeko 5818539743 add docstrings 2 years ago
BlenderNeko 8d2de420d3 Merge branch 'master' of https://github.com/BlenderNeko/ComfyUI 2 years ago
BlenderNeko 2a09e2aa27 refactor/split various bits of code for sampling 2 years ago
comfyanonymous 5282f56434 Implement Linear hypernetworks.
Add a HypernetworkLoader node to use hypernetworks.
2 years ago
Jacob Segal ee030d281b Add support for multiple unique inpainting masks
This enables workflows like "Inpaint at full resolution" when using
batch sizes greater than 1.
2 years ago
comfyanonymous 31e60adb28 Add GLIGEN example to README. 2 years ago
comfyanonymous 3696d1699a Add support for GLIGEN textbox model. 2 years ago
comfyanonymous f03dade5ab Fix bug. 2 years ago
comfyanonymous 6f7852bc47 Add a LatentFromBatch node to pick a single latent from a batch.
Works before and after sampling.
2 years ago
comfyanonymous 74fc7b7726 custom_nodes paths can now be set in the extra_model_paths.yaml 2 years ago
comfyanonymous 73c3e11e83 Fix model_management import so it doesn't get executed twice. 2 years ago
comfyanonymous f48f0872e2 Refactor: move nodes_mask_convertion nodes to nodes_mask. 2 years ago
comfyanonymous e1db7a2038 Merge branch 'image-to-mask' of https://github.com/missionfloyd/ComfyUI
# Conflicts:
#	nodes.py
2 years ago
comfyanonymous 1a7cda715b Revert LatentComposite. 2 years ago
comfyanonymous fed4a70b8e Merge branch 'master' of https://github.com/mligaintart/ComfyUI 2 years ago
Gavroche CryptoRUSH d2337a86fe
remove extra semi-colon 2 years ago
missionfloyd 9371924e65 Move mask conversion to separate file 2 years ago
missionfloyd 45b907fbf1
Merge branch 'comfyanonymous:master' into image-to-mask 2 years ago
comfyanonymous f15b4a7ffa Merge branch 'fix-LoadImageMask' of https://github.com/flyingshutter/ComfyUI 2 years ago
missionfloyd e1d289c1ec
use slice instead of torch.select() 2 years ago
missionfloyd e12fb88b1b Image/mask conversion nodes 2 years ago
comfyanonymous 24d53992c6 Rename. 2 years ago
comfyanonymous 60ac983238 Merge branch 'master' of https://github.com/city96/ComfyUI 2 years ago
comfyanonymous 44fea05064 Cleanup. 2 years ago
comfyanonymous 58ed0f2da4 Fix loading SD1.5 diffusers checkpoint. 2 years ago
sALTaccount 7734d65f22 fix loading alt folders 2 years ago
sALTaccount f51b7a92c7 search all diffusers paths (oops) 2 years ago
sALTaccount 72a8973bd5 allow configurable path for diffusers models 2 years ago
mligaintart 022a9f271b Adds masking to Latent Composite, and provides new masking utilities to
allow better compositing.
2 years ago
flyingshutter 9d1c610b89 make LoadImagesMask work with non RGBA images 2 years ago
sALTaccount 42fd67b5cb use precision determined by model management 2 years ago
sALTaccount 3d16077e38 empty list if diffusers directory doesn't exist 2 years ago
sALTaccount 60127a8304 diffusers loader 2 years ago
comfyanonymous f816964847 Add a way to set output directory with --output-directory 2 years ago
comfyanonymous 10ad4c1d17 Move unclip stuff out of _for_testing 2 years ago
comfyanonymous cadef9ff61 Merge branch 'nodes-post-processing' of https://github.com/EllangoK/ComfyUI 2 years ago
comfyanonymous f50b1fec69 Add noise augmentation setting to unCLIPConditioning. 2 years ago
EllangoK 4c7a9dbcb6 adds Blend, Blur, Dither, Sharpen nodes 2 years ago
comfyanonymous 6be7c64245 Merge branch 'custom_routes' of https://github.com/pythongosssss/ComfyUI 2 years ago
comfyanonymous 809bcc8ceb Add support for unCLIP SD2.x models.
See _for_testing/unclip in the UI for the new nodes.

unCLIPCheckpointLoader is used to load them.

unCLIPConditioning is used to add the image cond and takes as input a
CLIPVisionEncode output which has been moved to the conditioning section.
2 years ago
pythongosssss 38833ceb62 Merge remote-tracking branch 'origin/master' into custom_routes 2 years ago
pythongosssss 313f1f83a6 Tweak server/custom node load order
- Load custom nodes after creating server
 - Add routes after loading custom nodes
Custom nodes can now add routes via PromptServer.instance
2 years ago
comfyanonymous 18a6c1db33 Add a TomePatchModel node to the _for_testing section.
Tome increases sampling speed at the expense of quality.
2 years ago
City 9ac95e6ac7 Add human-readable name support for custom nodes 2 years ago
City 5bcbc007dd Add human-readable names for nodes 2 years ago
Silversith bb1503ed63
Bugfix/include optional node inputs (#271)
* Minor changes and extra nodes

* Added Preview Image for Nodes

* Add a delete images button on main floating menu

* Add a confirmation dialog

* Remove DeleteAll, Remove Custom KSampler, Remove Image List

* Remove Image and Custom Json Load

* Remove Custom Nodes

* remove patch.diff
2 years ago
comfyanonymous 48efadeccf Style. 2 years ago
m957ymj75urz 8a35c12e8c compute %width% and %height% in filepath when saving 2 years ago
comfyanonymous 9287770c66 Allow negative Lora strengths. 2 years ago
comfyanonymous e651be551c Merge branch 'allow-symbolic-link' of https://github.com/jn-jairo/ComfyUI 2 years ago
comfyanonymous a30526aec1 Set default value of feathering to 40. 2 years ago
Guo Y.K 3b87302958
nodes: ImagePadForOutpaint: clean imports 2 years ago
Guo Y.K 4c01386c19
nodes: ImagePadForOutpaint: fix feathering, ignore edges not expanded 2 years ago
Guo Y.K 4580f3e644
nodes: add feathering to to ImagePadForOutpaint 2 years ago
Jairo Correa 4f24e6a13b Allow output folder to be a symbolic link 2 years ago
Guo Y.K 3ebf7452c3
nodes: add ImagePadForOutpaint 2 years ago
comfyanonymous cc127eeabd 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%.
2 years ago
comfyanonymous aae9fe0cf9 Increase max res to 8192x8192 since 4096x4096 wasn't enough for some. 2 years ago
comfyanonymous aa2ddfabb9 Fix bug with CLIPLoader. 2 years ago
comfyanonymous e85fcb822b Small fix. 2 years ago
comfyanonymous 0abe001edd Merge branch 'save-images' of https://github.com/m957ymj75urz/ComfyUI 2 years ago
m957ymj75urz d1138e8ba0 rework payload from server 2 years ago
comfyanonymous 50099bcd96 Support multiple paths for embeddings. 2 years ago
comfyanonymous 2e73367f45 Merge T2IAdapterLoader and ControlNetLoader.
Workflows will be auto updated.
2 years ago
comfyanonymous e1a9e26968 Add folder_paths so models can be in multiple paths. 2 years ago
comfyanonymous bf1dc1d9bc Fix VAEEncodeForInpaint modifying source image. 2 years ago
m957ymj75urz 16001e9429 fixes for specific paths 2 years ago
comfyanonymous d834eed7d0 Fix bug when applying controlnet to negative prompt. 2 years ago
m957ymj75urz 629272c0ca resolve conflict with the new PreviewImage node 2 years ago
m957ymj75urz 3d2f60b315
Merge branch 'master' into save-images 2 years ago