|
1 | 1 | # ComfyUI-openpose-editor
|
2 |
| -Port of https://github.com/huchenlei/sd-webui-openpose-editor in ComfyUI |
| 2 | +[sd-webui-openpose-editor](https://github.com/huchenlei/sd-webui-openpose-editor) in ComfyUI |
3 | 3 |
|
4 |
| -WIP |
| 4 | +## Requirement |
| 5 | +- https://github.com/Fannovel16/comfyui_controlnet_aux |
5 | 6 |
|
6 |
| -## Architecture |
7 |
| -### Front-End node |
8 |
| -- Stores the json pose object |
9 |
| -- Call `/openpose/render` API endpoint to convert json to image |
10 |
| -- Preview the pose image |
11 |
| -- Display an edit button to trigger the editor modal |
12 |
| - - On click: send the json pose to editor |
13 |
| - - On editor close: receive the updated json and update preview |
14 |
| -- Input: [Optional] Background image |
15 |
| -- Output: Pose Image |
| 7 | +## How to use |
| 8 | +### Step 1: Use pose estimator node to obtain `POSE_KEYPOINT` JSON |
| 9 | + |
16 | 10 |
|
17 |
| -### Back-End node |
18 |
| -- Output the rendered openpose image |
| 11 | +### Step 2: Use `Load Openpose JSON` node to load JSON |
| 12 | + |
19 | 13 |
|
20 |
| -Dev List: |
21 |
| -- [ ] Figure out how backend can read change made by front-end on rendered openpose image. |
| 14 | +### Step 3: Perform necessary edits |
| 15 | + |
| 16 | + |
| 17 | +Click `Send pose to ControlNet` will send the pose back to ComfyUI and close the modal. |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +## Note |
| 22 | +You need to use comfyui_controlnet_aux with https://github.com/Fannovel16/comfyui_controlnet_aux/pull/381 meregd to get `Render Pose JSON` nodes. |
0 commit comments