Coder Social home page Coder Social logo

nonnonstop / sd-webui-3d-open-pose-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhuyu1997/open-pose-editor

783.0 783.0 95.0 7.5 MB

3d openpose editor for stable diffusion and controlnet

License: MIT License

JavaScript 0.22% TypeScript 87.13% CSS 7.26% Python 4.16% HTML 1.16% Shell 0.06%
controlnet openpose stable-diffusion webui

sd-webui-3d-open-pose-editor's People

Contributors

nixdorfer avatar nonnonstop avatar shirayu avatar zhuyu1997 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sd-webui-3d-open-pose-editor's Issues

colab error code

ValueError: File cannot be fetched: /content/drive/MyDrive/SD/extensions/sd-webui-3d-open-pose-editor/style.css. All files must contained within the Gradio python app working directory, or be a temp file created by the Gradio python app.


tunnel : ngrok

[Bug]

After an update, the plugin completely stopped working. There's no bones. So it renders the extension not usable.

Steps to reproduce the behavior:
Go to go to the extension. Shift+D for duplicate bones/ new bones.

Expected behavior:
Bones will appear.

Screenshot 2023-04-10 at 2 53 52 PM

  • OSX 13.3 Ventura, MacBook Pro M1
  • Browser: Brave
  • A1111 WebUI Commit: 22bcc7be
  • Torch: 2.1.0.dev20230401
  • Extension: 6004a31 (Sun Apr 9 05:42:42 2023)

API error: GET: http://127.0.0.1:7860/file=undefined

After updating the extension, I get this error:

API error: GET: http://127.0.0.1:7860/file=undefined {'error': 'RuntimeError', 'detail': '', 'body': '', 'errors': 'File at path D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\undefined does not exist.'}
Traceback (most recent call last):
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 94, in receive
return self.receive_nowait()
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 89, in receive_nowait
raise WouldBlock
anyio.WouldBlock

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\modules\api\api.py", line 145, in exception_handling
return await call_next(request)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 108, in call
response = await self.dispatch_func(request, call_next)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\modules\api\api.py", line 110, in log_and_time
res: Response = await call_next(req)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 69, in app
await response(scope, receive, send)
File "D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\venv\lib\site-packages\starlette\responses.py", line 338, in call
raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path D:\DEVELOPMENT\STABLEDIFFUSION\stable-diffusion-webui\undefined does not exist.

Stable Diffusion works normally and no errors if I disable this extension.

bones width is too big

You should have option to use sticks as bones cause theyre too large when you do head close up and openpose wont recognize skeleton at all on close up of head, try it
Bones should be that thin
image

Feature Request: Reset Button + Handposes

Hi there. Thanks a lot for this great extension! Two things that would come in really handy ^^

  1. Reset Button: ok I see restore last scene is like the reset to the original, if no other scene is loaded :)

  2. Hands are not easy to configure with this model (at least not for beginners). It would really help and safe some time, to have hand gestures like "fist" "stretched out hands" some of the most common hand signs be "loadable" and be able to adjust from there.

Thanks again, maybe sometime it can be implemented :)

Greets

error on clean install

clean install of the extension results in:

RuntimeError: File at path extensions/sd-webui-3d-open-pose-editor/models/shou.jpg does not exist.

looking at the files, it seems to be referenced by models/hand.fbx model so model loader is failing.

[Bug]

Not doing all the suggested noise because I don't have time for that at the moment. Saw a similar issue, BUT mine is slightly different. I have a white screen, with the UI, but no skeleton. I can technically generate and send the skeleton out of the editor, but i have no way of seeing what I am doing.

Screenshot 2023-04-06 223535

Unable to use the "Send to..." buttons

I've installed the extension. The Edit Openpose tab works fine. After clicking on the Create button it switches to the Send to ControlNet tab. I can see the four images are populated. But when I click on those two Send buttons nothing happens. I've tried it on Chrome and Firefox.

What have I done wrong?

Can't detect from the image

It worked before but now it's broken. I don't know what affected it.

TypeError: Cannot read properties of undefined (reading 'map') at i2.DetectFromImage (http://127.0.0.1:7860/file=extensions/sd-webui-3d-open-pose-editor/javascript/lazy/main.js?c7969a7a:28054:40)

Keeps reverting to the old version

I've uninstalled and reinstalled the extension and it's no longer showing the most recent updates to the UI. Keeps switching back to the original version without the Gradio controls.

Screenshot 2023-03-24 at 19 54 09

all great but pose library and ability to extract a pose from upoading photo

OR at least upload an image with openpose skeleton sticks and it would try to match it in 3d view, its so cumbersome to move skeleton around and hands are literally impossible to get right, so a library for hand poses would help a lot
Separate lib for hands and separate for poses
Also default focal should be 100mm , SD isnt great with perspective

add "Detect from Image"

Thank you for making this Extension.
The camera and bone system give AI art a new sense of certainty.

Could you implement additional functions to make this function even easier to use?

"Detect from image" would be very useful to have a function to estimate the pose taken by the character in the loaded background image.

Since the functions are only pseudo-inferences, we think that the pose does not need to be accurate in the world space as long as it can infer the state seen from the current camera.

6a047e86 (Sun Apr 2 10:50:58 2023) makes tab unusable on Edge and Firefox [Bug]

Describe the bug
updated to 6a047e8 (Sun Apr 2 10:50:58 2023)
click on 3d openpose tab and it all looks mangled inside a tiny window, can't use it

To Reproduce
Steps to reproduce the behavior:

  1. Click on 3d openpose tab
  2. Edit Openpose looks very small

Expected behavior
Be able to use the UI

Screenshots
image

Environment (please complete the following information):

  • Windows 10
  • Edge and Firefox
  • A1111 WebUI Version: Commit hash: 64b7e8382377bb578d9740c061979776b214cfd9
  • Extension Version: 6a047e8 (Sun Apr 2 10:50:58 2023)
  • ControlNet Version: 241c05f8 (Thu Mar 23 15:18:35 2023)

Additional context
maybe this is some simple css html dimensioning problem. The mini window looks to have stuff in it.
The "Send to ControlNet tab is perfectly normal looking and usable, it's the Edit Openpose one that is diminished.

Ui Bug

The 3d open pose editor is white or blank in opera gx, the extension is working properly on chrome

Screenshot (73)

This possibly has something to do with the issue

I want you to put options that can add existing openpose

Your making is great, but I think you should add existing openpose setting, because the Detect From Image Function doens't work well, espacially when some parts of the body are not on the photo.

Thank you, @nonnonstop

ps. I think you should also add turning camera that can be seen leaning.

can't find a "body parometers"

I am a beginner.
I have completed the installation. but I can't find a "body parometers" diagram.
It's very troubled.
How can I fix this?

512x512 is saved as 640x640

The default settings width/height= 512. After creating the pose, I clicked on Download. The image is saved as 640x640.

[Feature Request] Extra foot model

The barefoot model sometimes Makes AI generated foot like hand.
I guess it was because the shape of toes makes AI think of fingers.
00214-1860232430-((extremely detailed CG unity 8k wallpaper,masterpiece, best quality, ultra-detailed, beautiful detailed eyes_1 2),high saturati

To fix this, I suggest to have multiple foot model for users to swap.
Since only an outline is needed, we don`t need to have tons of shoe model for our case.
I believe the following model would be enough, priority high to low.

  • Flat shoes, general design, fits most of the cases.
  • stiletto heels, a design with long, thin heels, this will cover most of the heeled shoes such as pumps, heeled boots, etc.
  • wedge heels, a design with no gap between sole and heel, covers the rest of heeled design.
  • Paws, for furry lovers (perhaps a scale option might be needed for optimal outcome)

to bones for these shoes (exclude paw) could be simple since toes are not there.

Thanks :)

feature request: free form pose movement

like the work so far, but setting a pose using radials to rotate each bone is cumbersome - great for fine tuning, but not that great to set the general pose.

suggestion is to have free-move mode where click & drag moves a bone on two prominent axes and lock the third axis
for example:

  • if using front view, it mouse moves on x/y and z is locked
  • if using side view mouse moves on y/z and x is locked

and determining which two axes are prominent can be determined from camera angle

second part of feature request is to actually utilize right click to add a popup menu - delete/duplicate/move-mode - they can all be embedded controls so main ui can be vastly simplified.

and entire camera params section can be removed - the full functionality is via mouse movement anyhow.

Some issue with latest update

  1. Control panel is covering the preview. How can I shift them?
  2. After Fixing View. Restore View doesn't seem to work.
  3. Is there a way to restore skeleton back to default pose? e.g. after I messed it up or duplicating one and want to start from scratch.
  4. I always have to hold X key to move skeleton and can't switch to move mode like the old version. That was useful when I have several skeletons to position. I could click and move.

Thanks for your amazing work 👍

[Feature Request]

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
当我在使用从图片检测姿势这个功能的时候,会有一段时间用来下载media pipe模型,对于**境内的用户,这种下载似乎因为网络原因无法进行,导致一直停在下载页面。
Describe the solution you'd like
A clear and concise description of what you want to happen.
我希望这个扩展可以整合media pipe模型让它变得不用再下载。
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
最后感谢你们的制作组,我还是第一次见到功能如此强大的扩展,结合onepose 和 candy模型,使用两个controlnet,居然不在会有手脚奇怪的问题。十分强大的扩展,感谢开源!

You forgot to add the body center point

Original open pose has a body center point which allows you to rotate the entire body relative to the ground plane. Also I can't work around it, because I can't rotate the camera around it's z axis.

[Feature Request] Please bring back the unobstructed random pose button

Is your feature request related to a problem? Please describe.
nope

Describe the solution you'd like
I used the random pose button a lot- and it was very convenient that it was not hidden in a drop down menu before. Please bring it back to it's former glory. :)

Describe alternatives you've considered
Blackmail, threats, manipulation, yelling in all caps, denial, resignation, acceptance

Additional context
The random pose button now requires multiple clicks to get to, and it is tedious to get to if you use it a lot. If the UI was less animated-ish and more responsive it would be less of an issue, but it would still be annoying :/

Thanks :)

[Feature Request] Add Presets

When using the extension i mostly always start with a certain base pose. The upload and download file option is too complicated and slow in my opinion. Something like the presets in the openpose-editor would be great.
Screenshot
Could you implement that?

'Move mode' issue

99f3e80
When I press X or select 'Move mode' in the menu, the active node changes to the center node, common to the entire model. It is not possible to switch to other nodes.
chrome_we6XlqDKhQ

Requeset UI change

The editor is more and more complex.
If only provide webui bind by some buttons is not enough, and need to make many changes upstream.
I request to reduce some buttons and use the interaction of the editor self.

3D viewport doesn't load and no buttons work

I just installed this extension and the viewport is just white and it doesn't seem like any of the buttons do anything. I haven't had any problems with other extensions. The viewport in PoseX works fine.

I installed with the "Install from URL" tab in Automatic1111.
Did I miss something?

Thanks!

colab Error, hand.fbx does not exist.

maybe hand.gbx. The file path seems to be incorrect. please help.

ERROR: Exception in ASGI application

Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/starlette/responses.py", line 335, in call
stat_result = await anyio.to_thread.run_sync(os.stat, self.path)
File "/usr/local/lib/python3.9/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.9/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.9/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
FileNotFoundError: [Errno 2] No such file or directory: '/content/repository/extensions/sd-webui-3d-open-pose-editor/models/hand.fbx'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/uvicorn/protocols/http/h11_impl.py", line 429, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.9/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/dist-packages/fastapi/applications.py", line 273, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.9/dist-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/gzip.py", line 24, in call
await responder(scope, receive, send)
File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/usr/local/lib/python3.9/dist-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/usr/local/lib/python3.9/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 69, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.9/dist-packages/starlette/responses.py", line 338, in call
raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path /content/repository/extensions/sd-webui-3d-open-pose-editor/models/hand.fbx does not exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.