openpose-editor icon indicating copy to clipboard operation
openpose-editor copied to clipboard

Is it possible to save the adjusted skeleton position?

Open Chunbear opened this issue 2 years ago • 6 comments

There will be deviation when identifying the skeleton from the image, after adjusting it and sending it to ControlNet, after switching back to the openpose-editor tab again, the originally adjusted skeleton will change, and I hope to save the skeleton position.

Chunbear avatar Feb 19 '23 08:02 Chunbear

I definitely second this. Really enjoying the extension but it's difficult when I put a lot of time into getting the poses right and then having the whole thing blow up once it's sent to ControlNet.

lokitsar avatar Feb 19 '23 19:02 lokitsar

@lokitsar I know it's not the same, but you can at least save the pose as image for later. But yes, a pose saver would be definately a good thing.

Woisek avatar Feb 19 '23 20:02 Woisek

I know it's not the same, but you can at least save the pose as image for later.

At the bottom of the 'OpenPose Editor' tab, there's a 'Save PNG' button that saves the active pose

image

joetech avatar Feb 19 '23 20:02 joetech

I know it's not the same, but you can at least save the pose as image for later.

At the bottom of the 'OpenPose Editor' tab, there's a 'Save PNG' button that saves the active pose

image

Thank you!!!! I should have tried that but I assumed it just saved it as an image and didn't allow me to go back and fine tune the skeleton. That's what I get for assuming. Thanks for the tip.

lokitsar avatar Feb 19 '23 20:02 lokitsar

I added support for load/save json. Now you can save and load with "Load from json" and "Save json" image

fkunn1326 avatar Feb 20 '23 05:02 fkunn1326

@fkunn1326 In a future version of the JSON format, it might be helpful to use an object with each point named for what it is reference to (ex: right_eye, left_elbow, etc.) - instead of a fixed-order array - for keypoints. This would make it easier to adjust when new OpenPose models are released. I've seen them say they are adjusting the hand model, and want to do more facial structure points.

Edit: It would also make omitting points - like out-of-frame legs - easier, since right now it relies on each keypoint matching a specific index in the array. And if you did change the JSON format, you could include a version check with a version included in the file.

MegaScience avatar Feb 20 '23 21:02 MegaScience