93 Commits (51df846598544471bdc2126d39c13dca66884f90)

Author SHA1 Message Date
僵尸浩 8d7910cee9
disable follow_symlinks in static serving for security reason (#2902) 1 year ago
comfyanonymous 079dbf9198 Remove useless code. 1 year ago
pythongosssss 235727fed7
Store user settings/data on the server and multi user support (#2160)
* wip per user data

* Rename, hide menu

* better error
rework default user

* store pretty

* Add userdata endpoints
Change nodetemplates to userdata

* add multi user message

* make normal arg

* Fix tests

* Ignore user dir

* user tests

* Changed to default to browser storage and add server-storage arg

* fix crash on empty templates

* fix settings added before load

* ignore parse errors
1 year ago
ramyma af94eb14e3 fix: `/free` handler function name 1 year ago
comfyanonymous 6d281b4ff4 Add a /free route to unload models or free all memory.
A POST request to /free with: {"unload_models":true}
will unload models from vram.

A POST request to /free with: {"free_memory":true}
will unload models and free all cached data from the last run workflow.
1 year ago
comfyanonymous 8e2c99e3cf Fix issue when websocket is deleted when data is being sent. 1 year ago
comfyanonymous 21063fa35b Lower compress level of png sent on websocket. 1 year ago
comfyanonymous 2dd5b4dd78 Only show last 200 elements in the UI history tab. 1 year ago
comfyanonymous a12cc05323 Add --max-upload-size argument, the default is 100MB. 1 year ago
Dr.Lt.Data 1f38de1fb3 If an error occurs while retrieving object_info, only the node that encountered the error should be handled as an exception, while the information for the other nodes should continue to be processed normally. 1 year ago
Sean Lynch 8321592408 Escape paths when passing them to globs
Try to prevent JS search from breaking on pathnames with square
brackets.
1 year ago
Michael Poutre cc2fa311dd
fix(server): Disable access logs 1 year ago
comfyanonymous 9261587d89 Small refactor. 1 year ago
comfyanonymous d6d1a8998f Properly check upload filename for directory transversal. 1 year ago
Chris 694c705f52 get class description 1 year ago
Chris adb9eb94b0 Send class description if any 1 year ago
Ridan Vandenbergh 2cd3980199 Remove forced lowercase on embeddings endpoint 2 years ago
Chris 18379dea36 check for text attr and save 2 years ago
Chris edcff9ab8a copy metadata into modified image 2 years ago
Dr.Lt.Data 0faee1186f
support on prompt event handler (#765)
Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
2 years ago
ramyma 0b6cf7a558 Increase client_max_size to allow bigger request bodies 2 years ago
pythongosssss cdaf65ceb1 remove log 2 years ago
pythongosssss 9b1d5a587c Allow loading js extensions without copying to /web folder 2 years ago
pythongosssss 0bbd9dd4d9 add system info to stats endpoint 2 years ago
comfyanonymous ccb6b70de1 Move image encoding outside of sampling loop for better preview perf. 2 years ago
comfyanonymous 876dadca84 Highlight nodes with errors in red even when workflow works fine. 2 years ago
Dr.Lt.Data c9f5d5b2e1
optimize: support preview mode for mask editor. (#755)
* support preview mode for mask editor.
* use original file reference instead of loaded frontend blob

bugfix:
* prevent file open dialog when save to load image

* bugfix: cannot clear previous mask painted image's alpha

* bugfix

* bugfix

---------

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
2 years ago
comfyanonymous 6253ec4aef Fix server crashing because of terminated websocket connection. 2 years ago
comfyanonymous af91df85c2 Add a /history/{prompt_id} endpoint. 2 years ago
space-nuko b4f434ee66 Preview sampled images with TAESD 2 years ago
comfyanonymous 2ec980bb9f Limit preview to webp and RGB jpeg. 2 years ago
Dr.Lt.Data 9f3a19b728
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>
2 years ago
comfyanonymous 67892b5ac5 Refactor and improve model_management code related to free memory. 2 years ago
space-nuko b5dd15c67a System stats endpoint 2 years ago
space-nuko 1bbd3f7fe1 Send back prompt number from prompt/ endpoint 2 years ago
comfyanonymous b9818eb910 Add route to get safetensors metadata:
/view_metadata/loras?filename=lora.safetensors
2 years ago
comfyanonymous db27b0405a object_info now returns if node is an output_node or not. 2 years ago
comfyanonymous ffc56c53c9 Add a node_errors to the /prompt error json response.
"node_errors" contains a dict keyed by node ids. The contents are a message
and a list of dependent outputs.
2 years ago
comfyanonymous 3c76f43057 Cleaner code. 2 years ago
comfyanonymous b9daf4e30f Add a /object_info/{node_class} route to get only the info of one node. 2 years ago
comfyanonymous e7b9d2c02c /prompt endpoint error is now in json format. 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 153f7ee152 Merge branch 'serve-static-symlinks' of https://github.com/pythongosssss/ComfyUI 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 997dd1b131 Fix queue delete. 2 years ago
pythongosssss 8a4ff5e34c allow static files to be symlinks 2 years ago
comfyanonymous 8ea165dd1e Add a way to overwrite images when uploading. 2 years ago
comfyanonymous 974958ff81 Make the prompt_id a uuid and return it when queueing the prompt. 2 years ago
comfyanonymous 8e3d1cbf3b Fix bug when uploading image with the same name. 2 years ago
comfyanonymous d6dee8af1d Only validate each input once. 2 years ago