Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenPose Error in ControlNet with Stable Diffusion on Apple M1 Max #496

Closed
yuanob opened this issue Mar 4, 2024 · 2 comments
Closed

OpenPose Error in ControlNet with Stable Diffusion on Apple M1 Max #496

yuanob opened this issue Mar 4, 2024 · 2 comments
Labels
stale Stale issue or inactive for long period of time

Comments

@yuanob
Copy link

yuanob commented Mar 4, 2024

I am experiencing an error when trying to use OpenPose with ControlNet in Stable Diffusion on an Apple M1 Max with 64GB of memory running macOS 14.2.1 (23C71). The error message is as follows:

...
ModuleNotFoundError: No module named 'basicsr'
... Please see below

I have already installed basicsr with pip install basicsr, but the error persists. I have tried multiple times, but the OpenPose function still does not work.

Additional Information:
STABILTY MATRIX:(v2.9.0)
Stable Diffusion WebUI version: (v1.8.0)
ControlNet version: (v1.1.441)
Python version: (v3.10.11)
Operating system: macOS 14.2.1 (23C71)
CPU: Apple M1 Max
Memory: 64GB

Question:

  • How can I resolve this issue?
  • Is there a known issue with OpenPose on Apple M1 Max machines?
  • Are there any alternative OpenPose models that I can use?

...
2024-03-04 13:18:54,246 - ControlNet - INFO - Preview Resolution = 512
Traceback (most recent call last):
File "/Applications/Data/Packages/Stable Diffusion WebUI/venv/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "/Applications/Data/Packages/Stable Diffusion WebUI/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1431, in process_api
result = await self.call_function(
File "/Applications/Data/Packages/Stable Diffusion WebUI/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "/Applications/Data/Packages/Stable Diffusion WebUI/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/Applications/Data/Packages/Stable Diffusion WebUI/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/Applications/Data/Packages/Stable Diffusion WebUI/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/Applications/Data/Packages/Stable Diffusion WebUI/venv/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "/Applications/Data/Packages/Stable Diffusion WebUI/extensions/sd-webui-controlnet/scripts/controlnet_ui/controlnet_ui_group.py", line 1015, in run_annotator
result, is_image = preprocessor(
File "/Applications/Data/Packages/Stable Diffusion WebUI/extensions/sd-webui-controlnet/scripts/utils.py", line 80, in decorated_func
return cached_func(*args, **kwargs)
File "/Applications/Data/Packages/Stable Diffusion WebUI/extensions/sd-webui-controlnet/scripts/utils.py", line 64, in cached_func
return func(*args, **kwargs)
File "/Applications/Data/Packages/Stable Diffusion WebUI/extensions/sd-webui-controlnet/scripts/global_state.py", line 37, in unified_preprocessor
return preprocessor_modules[preprocessor_name](*args, **kwargs)
File "/Applications/Data/Packages/Stable Diffusion WebUI/extensions/sd-webui-controlnet/scripts/processor.py", line 290, in run_model
return remove_pad(self.model_openpose(
File "/Applications/Data/Packages/Stable Diffusion WebUI/extensions/sd-webui-controlnet/annotator/openpose/init.py", line 447, in call
poses = self.detect_poses(oriImg, include_hand, include_face)
File "/Applications/Data/Packages/Stable Diffusion WebUI/extensions/sd-webui-controlnet/annotator/openpose/init.py", line 333, in detect_poses
self.load_model()
File "/Applications/Data/Packages/Stable Diffusion WebUI/extensions/sd-webui-controlnet/annotator/openpose/init.py", line 206, in load_model
from basicsr.utils.download_util import load_file_from_url
ModuleNotFoundError: No module named 'basicsr'

allwavemedia pushed a commit to allwavemedia/StabilityMatrix that referenced this issue Mar 13, 2024
Copy link

github-actions bot commented Jul 7, 2024

This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.

@github-actions github-actions bot added the stale Stale issue or inactive for long period of time label Jul 7, 2024
Copy link

This issue was closed because it has been stale for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issue or inactive for long period of time
Projects
None yet
Development

No branches or pull requests

1 participant