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

Mac M1 Error - min and input tensors must be of the same shape #15

Closed
bingoYB opened this issue Mar 6, 2023 · 5 comments
Closed

Mac M1 Error - min and input tensors must be of the same shape #15

bingoYB opened this issue Mar 6, 2023 · 5 comments
Labels
Bug Something is wrong.

Comments

@bingoYB
Copy link

bingoYB commented Mar 6, 2023

Help!How can I solve the problem

Error img:
image

img Config
image

system: MacBook Pro (13-inch, M1, 2020)

@mcmonkey4eva
Copy link
Member

You're not the only person to have this issue on a Mac. I think there must be something different about the mac code that causes things to not work... but I don't really know the details as I don't own a mac.

@mcmonkey4eva mcmonkey4eva added the Bug Something is wrong. label Mar 7, 2023
@mcmonkey4eva mcmonkey4eva changed the title error: min and input tensors must be of the same shape Mac M1 Error - min and input tensors must be of the same shape Mar 7, 2023
@icedac
Copy link

icedac commented Mar 19, 2023

I fixed it; the problem is not this project but webui; the script for macos are outdated.

Replace a line webui-macos-env.sh scripts with proper pytorch version

export TORCH_COMMAND="pip install torch==1.12.1 torchvision==0.13.1"
export TORCH_COMMAND="pip install torch==1.13.1 torchvision==0.14.1"

And reinstall torch

./webui.sh --reinstall-torch

note: I asked it to gpt4 and gpt4 tell me it's problem of pytorch.

@wifeyole
Copy link

I fixed it; the problem is not this project but webui; the script for macos are outdated.

Replace a line webui-macos-env.sh scripts with proper pytorch version

export TORCH_COMMAND="pip install torch==1.12.1 torchvision==0.13.1"
export TORCH_COMMAND="pip install torch==1.13.1 torchvision==0.14.1"

And reinstall torch

./webui.sh --reinstall-torch

note: I asked it to gpt4 and gpt4 tell me it's problem of pytorch.

Hey!

I'm a bit new and ignorant about coding or stable diffusion, but i have the same problem as op, tried to follow what you said changing the ver in the scripts, but the last step.. i can't understand where exactly i should put the command.

If you dont mind me asking and sorry!

@shelly-luo
Copy link

I fixed it; the problem is not this project but webui; the script for macos are outdated.

Replace a line webui-macos-env.sh scripts with proper pytorch version

export TORCH_COMMAND="pip install torch==1.12.1 torchvision==0.13.1"
export TORCH_COMMAND="pip install torch==1.13.1 torchvision==0.14.1"

And reinstall torch

./webui.sh --reinstall-torch

note: I asked it to gpt4 and gpt4 tell me it's problem of pytorch.

Thank you very much, it works for me!

@no7bed
Copy link

no7bed commented Jul 22, 2023

I fixed it; the problem is not this project but webui; the script for macos are outdated.

Replace a line webui-macos-env.sh scripts with proper pytorch version

export TORCH_COMMAND="pip install torch==1.12.1 torchvision==0.13.1"
export TORCH_COMMAND="pip install torch==1.13.1 torchvision==0.14.1"

And reinstall torch

./webui.sh --reinstall-torch

note: I asked it to gpt4 and gpt4 tell me it's problem of pytorch.

Thank you very much, it works for me too!

my webui-macos-env.sh is
export TORCH_COMMAND="pip install torch==2.0.1 torchvision==0.15.2"

so, I just do ./webui.sh --reinstall-torch
than, it works

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

No branches or pull requests

6 participants