Commit Graph
982 Commits
Author SHA1 Message Date
space-nuko a816ca9091 Preview sampled images with TAESD 2023-06-05 09:20:17 -05:00
comfyanonymous 5891ad01d5 Limit preview to webp and RGB jpeg. 2023-06-05 01:50:14 -04:00
075fd23962 improve: lightweight preview to reduce network traffic (#733)
* To reduce bandwidth traffic in a remote environment, a lossy compression-based preview mode is provided for displaying simple visualizations in node-based widgets.

* Added 'preview=[image format]' option to the '/view' API.
* Updated node to use preview for displaying images as widgets.
* Excluded preview usage in the open image, save image, mask editor where the original data is required.

* Made preview_format parameterizable for extensibility.

* default preview format changed: jpeg -> webp

* Support advanced preview_format option.
- grayscale option for visual debugging
- quality option for aggressive reducing

L?;format;quality?

ex)
jpeg => rgb, jpeg, quality 90
L;webp;80 => grayscale, webp, quality 80
L;png => grayscale, png, quality 90
webp;50 => rgb, webp, quality 50

* move comment

* * add settings for preview_format
* default value is ''(= don't reencode)

---------

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
2023-06-05 01:49:43 -04:00
comfyanonymous 442430dcef Some comments to say what the vram state options mean. 2023-06-04 17:51:04 -04:00
Dr.Lt.DataandGitHub 4111aad9f6 Crash fix for intermittent crashes that occur when opening MaskEditor. (#732) 2023-06-03 12:25:49 -04:00
comfyanonymous 3074b4224c Move node properties panel from double click to menu option. 2023-06-03 11:47:20 -04:00
comfyanonymous 06cb0bc037 Latest litegraph from upstream. 2023-06-03 11:46:52 -04:00
comfyanonymous 32d613f2da Search box style fix. 2023-06-03 11:19:10 -04:00
comfyanonymous e136e86a13 Cleanups and fixes for model_management.py
Hopefully fix regression on MPS and CPU.
2023-06-03 11:05:37 -04:00
comfyanonymous d7821166b2 Implement global average pooling for controlnet. 2023-06-03 01:49:03 -04:00
comfyanonymous c180012adf Ignore folder path directories that don't exist. 2023-06-02 16:48:56 -04:00
comfyanonymous 30619e179d Smarter filename list caching. 2023-06-02 16:34:47 -04:00
comfyanonymous 6b80950a41 Refactor and improve model_management code related to free memory. 2023-06-02 15:21:33 -04:00
space-nuko 7cb90ba509 More accurate total 2023-06-02 00:14:41 -05:00
space-nuko 22b707f1cf System stats endpoint 2023-06-01 23:26:23 -05:00
space-nuko d9c06b69a2 Send back prompt number from prompt/ endpoint 2023-06-01 22:15:06 -05:00
comfyanonymous f929d8df00 Tweak lowvram model memory so it's closer to what it was before. 2023-06-01 04:04:35 -04:00
comfyanonymous f6f0a25226 Empty cache on mps. 2023-06-01 03:52:51 -04:00
space-nukoandcomfyanonymous 860143dfb6 Prevent callers from mutating folder lists 2023-05-31 21:07:27 -04:00
comfyanonymous 1995217c36 Merge branch 'refactor/registerNodes' of https://github.com/ltdrdata/ComfyUI 2023-05-31 13:26:28 -04:00
comfyanonymous fa734798f1 This is useless for inference. 2023-05-31 13:03:24 -04:00
ltdrdata 62150c008d race condition patch 2023-05-31 23:26:56 +09:00
ltdrdata df09b19360 To support dynamic custom loading, separate the node registration
process based on the defs in the registerNodes function.
2023-05-31 22:01:25 +09:00
comfyanonymous 0ae766ec58 Merge branch 'fix-litegraph-css' of https://github.com/space-nuko/ComfyUI 2023-05-30 23:42:00 -04:00
comfyanonymous 61cd736bb1 Keep list of filenames and only refresh it when something changes. 2023-05-30 18:48:50 -04:00
space-nuko dd09ca1529 Fix litegraph dialog z-index/font 2023-05-30 16:06:17 -05:00
space-nuko 5fff29b86d Fix litegraph dialog CSS 2023-05-30 16:01:49 -05:00
comfyanonymous 6bb45c981b Check if folder_name is valid instead of just throwing exception. 2023-05-30 16:44:09 -04:00
comfyanonymous 5b80fce0bb Merge branch 'hotfix/refresh-primitive-conflict' of https://github.com/ltdrdata/ComfyUI 2023-05-30 12:38:26 -04:00
comfyanonymous 4af4fe017b Auto load model in lowvram if not enough memory. 2023-05-30 12:36:41 -04:00
Lt.Dr.Data caa1962c13 HOTFIX: Patched the conflict issue between the Combo Refresh feature and PrimitiveNodes. 2023-05-30 15:26:45 +09:00
comfyanonymous 91298d2560 Disable repo owner validation in update.py 2023-05-29 11:29:00 -04:00
comfyanonymous ebf6e2c421 Add route to get safetensors metadata:
/view_metadata/loras?filename=lora.safetensors
2023-05-29 02:48:50 -04:00
Dr.Lt.Data 7264da8560 typo fix: field name in error message 2023-05-28 23:31:40 +09:00
comfyanonymous 12e275ab18 Support VAEs in diffusers format. 2023-05-28 02:02:09 -04:00
comfyanonymous c7572ef29d Refactor diffusers model convert code to be able to reuse it. 2023-05-28 01:55:40 -04:00
comfyanonymous e34e147259 Round the mask values for bitwise operations. 2023-05-28 00:42:53 -04:00
comfyanonymous 224d79d812 Fix issue with cancelling prompt. 2023-05-28 00:32:26 -04:00
comfyanonymous 4e5be08800 Merge branch 'error-improvements' of https://github.com/space-nuko/ComfyUI 2023-05-27 23:09:40 -04:00
space-nuko 712183e44e Bitwise operations for masks 2023-05-27 21:48:49 -05:00
space-nuko 3ba39931a0 Rename exception message field 2023-05-27 21:06:07 -05:00
space-nuko 96b9364255 Exception message 2023-05-27 21:06:07 -05:00
space-nuko 49ec8a2b17 Catch typecast errors 2023-05-27 21:06:07 -05:00
space-nuko 2d885e7019 Fix 2023-05-27 21:06:07 -05:00
space-nuko 8260e16cc7 Return null for value format 2023-05-27 21:06:07 -05:00
space-nuko cbd9aac327 Show message in the frontend if prompt execution raises an exception 2023-05-27 21:06:07 -05:00
space-nuko f510feec01 Send back more information about exceptions that happen during execution 2023-05-27 21:06:07 -05:00
space-nuko c742150520 Add missing input name/config 2023-05-27 21:06:07 -05:00
space-nuko 8d5245aace Improve invalid prompt error message 2023-05-27 21:06:07 -05:00
space-nuko 7abd22878d Highlight failing nodes/inputs in frontend 2023-05-27 21:06:07 -05:00