Skip to content

Commit b18e301

Browse files
authored
Update README.md
1 parent ac41666 commit b18e301

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
# 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
33

4-
WIP
4+
## Requirement
5+
- https://github.com/Fannovel16/comfyui_controlnet_aux
56

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+
![image](https://github.com/huchenlei/ComfyUI-openpose-editor/assets/20929282/5ed82dc9-4804-4263-9f05-e58a3202bf17)
1610

17-
### Back-End node
18-
- Output the rendered openpose image
11+
### Step 2: Use `Load Openpose JSON` node to load JSON
12+
![image](https://github.com/huchenlei/ComfyUI-openpose-editor/assets/20929282/2ca2021f-c618-48d6-bdfb-e132ffc95167)
1913

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+
![image](https://github.com/huchenlei/ComfyUI-openpose-editor/assets/20929282/c37af495-6b3e-4e11-b801-ae342f97760a)
16+
17+
Click `Send pose to ControlNet` will send the pose back to ComfyUI and close the modal.
18+
![image](https://github.com/huchenlei/ComfyUI-openpose-editor/assets/20929282/5178044f-1577-4174-97ca-63b7404b317c)
19+
![image](https://github.com/huchenlei/ComfyUI-openpose-editor/assets/20929282/c21bc5d0-4488-4b6b-8857-398cfbeebd53)
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

Comments
 (0)