The is a Restful API Gateway for ComfyUI which is designed for running ComfyUI version of Stable Diffusion Sketch.
- Install ComfyUI.
- Install all of below modules by cloning them under
/custom_nodes
in ComfyUI root folder. - Clone this repo.
- Update the path of your ComfyUI installation in run.bat(Windows) or run.sh(Linux) by updating the value of
COMFYUI_PATH
. - Execute run.bat(Windows) or run.sh(Linux) in a python available console such as Anaconda Prompt.
- Download a ComfyUI workflow (from SDSketch Discussions) or create a ComfyUI workflow which finishes with a node which save the result images with filename started with
api_
and with extension.jpg
. - Load the above workflow in your ComfyUI installation to check whether it can be correctly run.
- Put the workflow (ended with
.json
) under[root]/workflows/
. - Update
workflows_config.json
by adding a new entity (see example) under the root JSON Object. - Update
mode_config.json
by adding one or more JSON Object (see example) in the root JSON Array.