-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
I have tested these API codes in a production environment and they are quite fragile, but I still want to say a few words.
- For secure communication over HTTPS, it is advisable to employ the WSS (WebSocket Secure) protocol.
- The implementation of the
get_imagesfunction appears to be flawed. (pay attention tooutput_datavariable) - This script incorporates hard-coding by directly formatting the API address instead of referencing a configuration file.
- Should you choose to manually terminate the process, a subtle warning will be issued, which is perfectly tolerable.
- When using this script, you should fully understand the backend of Comfyui (for example, Comfyui will consider the image path as the standard for whether the image has changed, the best practice is to use uuid.)
load_workflowfunction doesn't take encoding into account.- The
save_imagefunction appears to be totally wrong. (it use the try-except machnism but not a if-else logic, if yousave_previewsare False, you will always get some fails.)
Last but not least, the backend of Comfyui is not as powerful as you imagine, in fact, it is quite fragile. So when your usage scenario is under pressure, please consider other deployment methods.
dmMaze
Metadata
Metadata
Assignees
Labels
No labels