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

TypeError: PlugableControlModel.__init__() got an unexpected keyword argument 'base_model' #88

Closed
MarkEmery opened this issue Feb 16, 2023 · 7 comments

Comments

@MarkEmery
Copy link

MarkEmery commented Feb 16, 2023

Just updated ControlNet via Automatic GUI, it now bombs out when trying to generate an image:

`Loading preprocessor: openpose, model: control_sd15_openpose [fef5e48e]

Error running process: /Users/emerym/Downloads/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py

Traceback (most recent call last):

File "/Users/emerym/Downloads/stable-diffusion-webui/modules/scripts.py", line 386, in process
script.process(p, *script_args)

File "/Users/emerym/Downloads/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 280, in process

network = PlugableControlModel(

TypeError: PlugableControlModel.init() got an unexpected keyword argument 'base_model'`

@Mikubill
Copy link
Owner

Restart webui instead of reload it.

@MarkEmery
Copy link
Author

I did that. Twice. Now when I click Generate I get this:

ControlNet model control_sd15_openpose [fef5e48e] loaded.
0%| | 0/20 [00:00<?, ?it/s]loc("mps_matmul"("(mpsFileLoc): /AppleInternal/Library/BuildRoots/0aa643d0-625a-11ed-b319-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphUtilities.mm":39:0)): error: inner dimensions differ 1024 & 768
loc("mps_matmul"("(mpsFileLoc): /AppleInternal/Library/BuildRoots/0aa643d0-625a-11ed-b319-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphUtilities.mm":39:0)): error: invalid shape
LLVM ERROR: Failed to infer result type(s).

I've noticed on startup I now get this. 90% sure I didn't get it before adding ControlNet

Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
No module 'xformers'. Proceeding without it.
Cannot import xformers
Traceback (most recent call last):
File "/Users/emerym/Downloads/stable-diffusion-webui/modules/sd_hijack_optimizations.py", line 20, in
import xformers.ops
ModuleNotFoundError: No module named 'xformers'

@Mikubill
Copy link
Owner

Maybe same issue as #68 and #87. #68 (comment) this may help but slow, xformers shouldn't have any impact since mps device not depends on it.

@WhiteZeroX
Copy link

I was having this too. I updated the extension and fully restarted webui and it's working now.

@MarkEmery
Copy link
Author

I've done a fresh install, now get:

ControlNet model control_sd15_openpose [fef5e48e] loaded.
0%| | 0/20 [00:00<?, ?it/s]loc("mps_matmul"("(mpsFileLoc): /AppleInternal/Library/BuildRoots/0aa643d0-625a-11ed-b319-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphUtilities.mm":39:0)): error: inner dimensions differ 1024 & 768
loc("mps_matmul"("(mpsFileLoc): /AppleInternal/Library/BuildRoots/0aa643d0-625a-11ed-b319-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphUtilities.mm":39:0)): error: invalid shape
LLVM ERROR: Failed to infer result type(s).
/opt/homebrew/Cellar/python@3.10/3.10.10/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '

@Mikubill
Copy link
Owner

Use sdv1 model with sdv1//sd15 pretrained controlnet.

@MarkEmery
Copy link
Author

Doh! Sorry, bit of a SD n00b here. It would help. v1.4 model downloaded, it's all working now. Slow on my 8GB Mini M1, but working. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants