310 Commits (719fb2c81d716ce8edd7f1bdc7804ae160a71d3a)

Author SHA1 Message Date
malern 2998e232cb Make multiline widget work with different canvas dimensions.
It now scales the textarea positioning using the canvas height/width.
2 years ago
comfyanonymous 62a371e12b Load workflow from latent file. 2 years ago
comfyanonymous 6a12094345 Merge branch 'patch/touch' of https://github.com/ltdrdata/ComfyUI 2 years ago
comfyanonymous 11e7168d56 Remove print. 2 years ago
ltdrdata 7ada9e7d85 allows touch drag 2 years ago
comfyanonymous 13d94caf49 Add control_after_generate to combo primitive. 2 years ago
Dr.Lt.Data d926f65f56
Feature/maskeditor context menu (#649)
* add "Open in MaskEditor" to context menu

* change save button name to 'Save to node' if open in node.
clear clipspace_return_node after auto paste

* * leak patch: prevent infinite duplication of MaskEditorDialog instance on every dialog open
* prevent conflict of multiple opening of MaskEditorDialog
* name of save button fix

* patch: brushPreview hiding by dialog

* consider close by 'esc' key on maskeditor.

* bugfix about last patch

* patch: invalid close detection

* 'enter' key as save action

* * batch support enhance
  - pick index based on imageIndex on copy action
* paste fix on batch image node

* typo

---------

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
2 years ago
comfyanonymous e7b9d2c02c /prompt endpoint error is now in json format. 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 a8705dbfe2 Speed up the mask save and fix refresh replacing copied image. 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 9bd33b6bd4 Merge branch 'progress-shape-fix' of https://github.com/pythongosssss/ComfyUI 2 years ago
pythongosssss de4623a8a4 actually fix card 2 years ago
pythongosssss f31e31ee0a Fix box shape
Match card to litegraph selection
2 years ago
pythongosssss 7e51bbd07f automatic calculation of image pos from widgets 2 years ago
comfyanonymous b04e16ef5a Make default workflow use an existing checkpoint if no SD1.5 checkpoint. 2 years ago
Jake D 54251ad85e
Colored MultilineWidget (#524)
* fixes colors and z-index

* light mode fix

* Update widgets.js
2 years ago
comfyanonymous 36acce58e7 Auto increase the size of the image upload widget when there's an image. 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
pythongosssss c8355ed39f use window.name instead of session storage
- prevents duplicate stealing session id
2 years ago
comfyanonymous c8afa7e9fb Merge branch 'settings-slider' of https://github.com/missionfloyd/ComfyUI 2 years ago
Karun bc16b70bde
Adds several keybinds that interact with ComfyUI (#491)
* adds keybinds that interact w/ comfy menu

* adds remaining keybinds

* adds keybinds to readme and converts to table

* ctrl s and o save and open workflow

* moves keybinds to sep file, update readme

* remap load default, support keycodes

* update keybinds table, prepends comfy to ids

* escape exits out of modals

* modifier keys also use map

* adds setting for filename prompt

* better handle filename prompt

Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>
2 years ago
pythongosssss 2dd28d4d20 style 2 years ago
pythongosssss eb4035c8bd Adds jsdoc for better dev experience 2 years ago
pythongosssss 5186b3266a Prevent generating bad replacement regex 2 years ago
comfyanonymous 501f200d86 Fix widgets not getting converted correctly in workflows. 2 years ago
missionfloyd 8810e1b4b9 Fix indentation 2 years ago
missionfloyd e87aa1873f Add slider setting type 2 years ago
FizzleDorf 3f52e7cbb1
Seed controls added to Ksamplers (#296)
Co-authored-by: flyingshutter <flyingshutter@users.noreply.github.com>
2 years ago
pythongosssss d6a3c0d424 Add support for dropping images from urls 2 years ago
comfyanonymous bece24d25e Merge branch 'fix/pnginfo-import' of https://github.com/filipemeneses/ComfyUI 2 years ago
comfyanonymous c982c937a7 Merge branch 'catch-configure-errors' of https://github.com/pythongosssss/ComfyUI 2 years ago
comfyanonymous b0edcfdc8e Merge branch 'missing-node-warning' of https://github.com/pythongosssss/ComfyUI 2 years ago
comfyanonymous e07f8eab6a Merge branch 'node-templates' of https://github.com/pythongosssss/ComfyUI 2 years ago
comfyanonymous 60ac983238 Merge branch 'master' of https://github.com/city96/ComfyUI 2 years ago
pythongosssss 92e912c065 Fix multiple missing 2 years ago
pythongosssss b78ebfcf9d Improve error UI 2 years ago
pythongosssss 12f9bfe895 Better filename check 2 years ago
pythongosssss 79ff7d67a5 Add error handling around initial load of workflow 2 years ago
Filipe e76890dcb4 Fix large workflow pnginfo import 2 years ago
pythongosssss aad71add69 const 2 years ago
pythongosssss cceb530395 Adds warning when loading graph with nodes you dont have 2 years ago
pythongosssss 357c0753f8 Support dataset when creating elements
Allow dialog to show element and override buttons
2 years ago
comfyanonymous ebd7f9bf80 Change the default prompt to something more impressive. 2 years ago
comfyanonymous 60b4c31ab3 Add webp images to upload accept list. 2 years ago
comfyanonymous 0bb5f93b92 Merge branch 'image-node-keybindings' of https://github.com/ALSchwalm/ComfyUI 2 years ago
comfyanonymous fb73d008bf Merge branch 'menu-drag' of https://github.com/missionfloyd/ComfyUI 2 years ago
missionfloyd 1a74611c6e Style modals to match rest of UI 2 years ago
missionfloyd 3536a7c8d1 Put drag icon back 2 years ago
missionfloyd a595c56872 Remove menu drag handle 2 years ago
missionfloyd 30f274bf48
Make the default true 2 years ago
missionfloyd 1b556ea9f4
Add confirmation for clearing canvas 2 years ago
Adam Schwalm bf7dbe4702 Add left/right/escape hotkeys for image nodes 2 years ago
City 080c758cda Ask for confirmation before clearing nodes 2 years ago
comfyanonymous 72f9235a49 Merge branch 'snap-to-grid' of https://github.com/pythongosssss/ComfyUI 2 years ago
pythongosssss 519890a5cc Adds middle click for default node creation
Enable two useful properties
2 years ago
pythongosssss 26dc8e3056 formatting 2 years ago
pythongosssss d027ff121c Snap to grid 2 years ago
pythongosssss 5aefd6cdf3 Support numeric settings, tooltip, extra attrs 2 years ago
comfyanonymous 27fc64ad46 Merge branch 'menu-save-and-anchor' of https://github.com/pythongosssss/ComfyUI 2 years ago
pythongosssss 178fc76363 Added a queue for the queue action 2 years ago
pythongosssss 06c2c19b5a Clone default graph before using 2 years ago
pythongosssss 1716aaa7a6 Swap order to prevent being cleared 2 years ago
City e6e30ee7cb Fallback for node title 2 years ago
City 5bcbc007dd Add human-readable names for nodes 2 years ago
pythongosssss 722801ed2d Formatting 2 years ago
pythongosssss 3a5bcdf8b9 Formatting 2 years ago
pythongosssss c93dc2fb89 Remove bottom anchor 2 years ago
pythongosssss 6481c90371 Merge remote-tracking branch 'origin/master' into menu-save-and-anchor 2 years ago
pythongosssss 7db120b9a9 Merge remote-tracking branch 'origin/master' into menu-save-and-anchor 2 years ago
pythongosssss 00c1ec498f Fix crash if node is removed mid run 2 years ago
pythongosssss 6f72c4c6ff Allows nodes to return ui data and output data
Fire executed event on node when message received
2 years ago
pythongosssss 8363ef967d Merge remote-tracking branch 'origin/master' into menu-save-and-anchor 2 years ago
Jairo Correa d5bf2314b3 Mute nodes and shortcuts in README 2 years ago
Farid Safi 40a377775e move clean to handleFile and loadGraphData functions 2 years ago
Farid Safi 393084877c clean state when loading another workflow 2 years ago
pythongosssss 9fdd5245fd Merge remote-tracking branch 'origin/master' into menu-save-and-anchor 2 years ago
Jairo Correa 4b9e11053c Color palette setting 2 years ago
pythongosssss 2d046f85e8 Merge remote-tracking branch 'origin/master' into menu-save-and-anchor 2 years ago
ltdrdata d3a375c8fb
Add support for file list refresh feature in node (#192)
* Added file reload feature to widgets.

* Modify feature name 'reload' to 'refresh' and fixed ignoring button name.

* refresh widget bugfix

* crash patch for "widget" input by type mismatch

* compensate offset on showimage
* adding widget caused misaligned offset

* patch refresh feature for general method

* clean up patch and following upstream

* make more clean code for refresh feature

* move refresh button position

* robust patch for refresh feature

* patch for refreh feature
* avoid specify REFRESH_LIST for each node
* prevent updating selected value unless removed item
* update all combo list for 'required input' in node

---------

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
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 479ef4b38f Merge branch 'group-header' of https://github.com/jn-jairo/ComfyUI 2 years ago
Jairo Correa 63525ee83c Move group by header 2 years ago
Jairo Correa 967bfce0f3 Optional RETURN_NAMES to set the output name 2 years ago
pythongosssss 0b1e85fbea Add manual flag when restoring pos 2 years ago
pythongosssss 716d8e746a Remove log 2 years ago
pythongosssss 20ae48515e Add setting to save menu position
Add anchoring to side when resizing
Fix losing menu when resizing
2 years ago
pythongosssss a49b5659bc
Merge branch 'comfyanonymous:master' into custom-node-socket 2 years ago
comfyanonymous d68350eee5 Merge branch 'draggable-menu' of https://github.com/jn-jairo/ComfyUI 2 years ago
mezzo-anon 980379bab2 change colors to a more consistent and pleasing palette 2 years ago
Jairo Correa 48d4edbceb Prevent draggable menu to get outside of window 2 years ago
Jairo Correa a5c78a5796 Draggable menu 2 years ago
comfyanonymous 8d66827b15 Merge branch 'slot-color' of https://github.com/jn-jairo/ComfyUI 2 years ago
comfyanonymous 58695f9c7a Fix seed being impossible to increment/decrement by 1. 2 years ago
Jairo Correa 070b5749b3 Slot colors by type 2 years ago
pythongosssss 8d0a142321 adds simple access to server from custom nodes 2 years ago
pythongosssss bb00176731 Remove debugger 2 years ago
pythongosssss 7a7e3288ee Added support for converting widgets to inputs (and back) 2 years ago
pythongosssss 4257e4ce51 tidy 2 years ago
pythongosssss 76f4d65d79 Remove initial call as now unnecessary
Set canvas to dirty if we grow the node
2 years ago
pythongosssss 2b94dee3da Calculate sizes when drawing if required 2 years ago
pythongosssss b810ca49f1 Add support for multiple multiline text areas on the same widget 2 years ago
xss eb67d05540 add canvas tab index so it recieves keydown events 2 years ago
comfyanonymous 451447bd9f Merge branch 'saveimage' of https://github.com/pythongosssss/ComfyUI 2 years ago
Guo Y.K 49705dc947
ui: hide decimal fraction for int fields 2 years ago
pythongosssss 0b6ba21f52 Added save image menu item 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
comfyanonymous 46b674c9c2 Make saved json more pretty. 2 years ago
m957ymj75urz d1138e8ba0 rework payload from server 2 years ago
comfyanonymous 07dab962da Add an auto queue checkbox.
This will auto queue the current prompt when the queue hits zero.
2 years ago
m957ymj75urz 5fa514fa51 rollback urlparams 2 years ago
comfyanonymous 739c1a753d Fix annoyance. 2 years ago
comfyanonymous e51d240eec Merge branch 'reroute-rewrite' of https://github.com/pythongosssss/ComfyUI 2 years ago
comfyanonymous 2e73367f45 Merge T2IAdapterLoader and ControlNetLoader.
Workflows will be auto updated.
2 years ago
pythongosssss ba4a754a53 Merge remote-tracking branch 'origin/master' into a1111-meta-v2 2 years ago
pythongosssss aff1e3936a Simplify and fix bug with following virtual nodes
courtesy of someanon
2 years ago
m957ymj75urz 16001e9429 fixes for specific paths 2 years ago
comfyanonymous ef71d2c281 Merge branch 'dragdrop-image-upload' of https://github.com/pythongosssss/ComfyUI into m1 2 years ago
comfyanonymous 07598e27e5 I think it looks a bit better like this. 2 years ago
comfyanonymous 10bbf208c4 Merge branch 'batch-count' of https://github.com/m957ymj75urz/ComfyUI 2 years ago
m957ymj75urz 3d2f60b315
Merge branch 'master' into save-images 2 years ago
m957ymj75urz 29cee297a0 ignore/restore custom batch count when extra options is unchecked 2 years ago
comfyanonymous 268a2dab71 Merge branch 'queue-prompt-hotkey' of https://github.com/pythongosssss/ComfyUI 2 years ago
pythongosssss 235dce3977 Explain why animation frame used 2 years ago
pythongosssss 4758752939 Updated comment 2 years ago
pythongosssss 019bd519cb Add dragleave handler to remove stuck highlight 2 years ago
pythongosssss f2a6cff466 Add dragdrop handling to nodes with upload widget 2 years ago
pythongosssss 01ec3db932 Add ctrl+shift+enter for queue front 2 years ago
pythongosssss 255ff2d6dd Added ctrl+enter to queue prompt 2 years ago
pythongosssss 94a279373b Better auto pos of images 2 years ago
m957ymj75urz a1b30f102b toggle extra options 2 years ago
pythongosssss e5318d918c Combo support detault value 2 years ago
pythongosssss 85989c74e5 Updated a1111 pnginfo importer, supports:
- model name, other basic settings
 - clip skip
 - hr upscale
 - loras
 - embeddings
2 years ago
m957ymj75urz 195d7aec9f can specify a subfolder in the SaveImage node 2 years ago
m957ymj75urz 67795e4085 added a range input 2 years ago
comfyanonymous b94ed02aae Merge branch 'uploadimages' of https://github.com/pythongosssss/ComfyUI 2 years ago
pythongosssss 99abc0eb2e Changed to upload to input dir
Fixed jpg
Added dupe support
Changed to use existing nodes
2 years ago
m957ymj75urz 21553316f2 add batch count to the menu 2 years ago
pythongosssss 4a326a2548 Added UploadImage+Mask nodes 2 years ago
pythongosssss 863e747dbd Added simple settings dialog
Updated to use css vars for colors
2 years ago
pythongosssss 5c55c93367 Updated to reuse session id if available 2 years ago
pythongosssss 4bdfbb3379 Fixed check for polling 2 years ago
pythongosssss a8315a6fb8 Allow any node to draw images 2 years ago
pythongosssss 1ee35fd909 Merge remote-tracking branch 'origin/master' into frontendrefactor 2 years ago
pythongosssss dc85b3b8d0 Allow serializeValue to be async 2 years ago
pythongosssss 9913114044 Only poll if it has never opened 2 years ago
pythongosssss 0e7b98e429 Restored accidently removed code 2 years ago
pythongosssss 947e786c0a Restored missing input edit fix 2 years ago
pythongosssss 592b377ac4 Added dynamic loading of extensions 2 years ago
pythongosssss e14b79c14e Changed to store resolved prompt in workflow info 2 years ago
pythongosssss 4ef4cf913f Adding built in extensions + example 2 years ago
pythongosssss 2e52d01cdc Documenting methods 2 years ago
pythongosssss 72cdd83c06 Readded loading file 2 years ago
pythongosssss a5c5c97ded More work on UI 2 years ago
pythongosssss 7e436ba9cc
Added handling of sockets
Started rework of UI elements
Added pnginfo handling
2 years ago
pythongosssss 2eaa664089
Refactored sockets 2 years ago
pythongosssss 5e25c77074
Initial refactoring changes
- Moved to web folder
 - Splitting into individual files
2 years ago