Coder Social home page Coder Social logo

Detect from image not work about openpose-editor HOT 7 OPEN

huoge1 avatar huoge1 commented on August 15, 2024
Detect from image not work

from openpose-editor.

Comments (7)

fkunn1326 avatar fkunn1326 commented on August 15, 2024 1

remove stable-diffusion-webui\models\body_pose_model.pth and relaunch will work for you

from openpose-editor.

SiuLeeBoss avatar SiuLeeBoss commented on August 15, 2024

I deleted body_pose_model.pth and restarted, but still got this error

from openpose-editor.

Jitone1 avatar Jitone1 commented on August 15, 2024

same here, I reinstall openpose and deleted the file body_pose_model. I restarted and it downloaded the model. Then error.
100%|███████████████████████████████████████████████████████████████████████████████| 200M/200M [00:16<00:00, 12.7MB/s]
Traceback (most recent call last):
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 39
4, in run_predict
output = await app.get_blocks().process_api(
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 10
75, in process_api
result = await self.call_function(
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 88
4, in call_function
prediction = await anyio.to_thread.run_sync(
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line
31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.p
y", line 937, in run_sync_in_worker_thread
return await future
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.p
y", line 867, in run
result = context.run(func, *args)
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line
106, in estimate
candidate, subset = body_estimation(pil2cv(img))
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\openpose-editor\scripts\openpose\body.
py", line 49, in call
Mconv7_stage6_L1, Mconv7_stage6_L2 = self.model(data)
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py
", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\openpose-editor\scripts\openpose\model
.py", line 118, in forward
out1 = self.model0(x)
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py
", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\container
.py", line 204, in forward
input = module(input)
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py
", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions-builtin\Lora\lora.py", line 319, in lo
ra_Conv2d_forward
return torch.nn.Conv2d_forward_before_lora(self, input)
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\conv.py",
line 463, in forward
return self._conv_forward(input, self.weight, self.bias)
File "E:\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\conv.py",
line 459, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: Given groups=1, weight of size [64, 3, 3, 3], expected input[1, 4, 184, 248] to have 3 channels, but got 4
channels instead

from openpose-editor.

GammelSami avatar GammelSami commented on August 15, 2024

I think the 4th channel is the alphachannel.

Workaround: I converted my image to JPEG (which does not support alphachannel), then it worked.

from openpose-editor.

fkunn1326 avatar fkunn1326 commented on August 15, 2024

I pushed small fix for this issue in https://github.com/fkunn1326/openpose-editor/tree/fkunn1326-patch-3, so please git switch fkunn1326-patch-3 in this extension's directory.

from openpose-editor.

SasukeCOZA avatar SasukeCOZA commented on August 15, 2024

nothing worked for me, I get no error, but my output is nothing or blank

from openpose-editor.

mwitz8 avatar mwitz8 commented on August 15, 2024

Has anyone got this working again?

from openpose-editor.

Related Issues (20)

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.