Giter Site home page Giter Site logo

MacOS? about controlnet HOT 12 OPEN

koen330 avatar koen330 commented on June 7, 2024 3
MacOS?

from controlnet.

Comments (12)

enzyme69 avatar enzyme69 commented on June 7, 2024 6

If using Automatic1111, --no-half maybe works:
https://github.com/Mikubill/sd-webui-controlnet

I did test it and it actually works. Maybe just a bit slower. Using M2 Pro machine, 16 GB.

from controlnet.

Ohnopleaseno avatar Ohnopleaseno commented on June 7, 2024 2

Thanks @enzyme69 it actually works! I'm so happy.

Additional info in case a noob like me is reading this. You need to open the file "webui-user.sh" in your stable-diffusion-webui folder. Then you'll find a line with written "#COMMANDLINE_ARGS=""

Remove the "#" and write "--skip-torch-cuda-test --no-half"
Eventually the line should look like "COMMANDLINE_ARGS="--skip-torch-cuda-test --no-half"

About the first argument, I had to add it as well, otherwise the program was crashing and was explicitly saying I should add it.

A picture is taking me around 3 minutes (20 steps) on my macbook M1 Air - 16 GB.
I didn't need to check "Low VRAM" as a comment on r/stablediffusion implied, however not doing so is making the render about 1 minute longer.

from controlnet.

jgranie avatar jgranie commented on June 7, 2024 1

Thanks for your quick reply, I have the same issue with these parameters (the exact line I have in my web-user.sh is: export COMMANDLINE_ARGS="--upcast-sampling --no-half-vae --use-cpu interrogate --skip-torch-cuda-test --no-half") and I launch SD with webui.sh

EDIT: The parameters solve the issue with depth preprocessor, I tried only the new depth_leres yesterday. Someone has the same issue ?

from controlnet.

AlanZhou2022 avatar AlanZhou2022 commented on June 7, 2024 1

Is the problem solved now?

from controlnet.

Ohnopleaseno avatar Ohnopleaseno commented on June 7, 2024

Hi,

I have the exact same issue on my Macbook air M1. I hope we'll find a fix, because ControlNet is for sure a game changer.

from controlnet.

JacopoMangiavacchi avatar JacopoMangiavacchi commented on June 7, 2024

I saw others had a very similar problem trying to use OAI Whisper model with Apple Silicon. Apparently the model is expecting a 32bit float tensor but it receives a 16bit tensor and MPS is not automatically converting/broadcasting. I haven’t tried but according to this post someone solve the problem configuring the fp32 version of the model and using the CPU :/

https://news.ycombinator.com/item?id=32928966

Hope there’s a better way

from controlnet.

kevinhower avatar kevinhower commented on June 7, 2024

That commandline args thing worked! At least on my M1 machine. Thanks so much! This is awesome :)

from controlnet.

ezam0000 avatar ezam0000 commented on June 7, 2024

--no-half

works!

from controlnet.

jgranie avatar jgranie commented on June 7, 2024

Don't work for me, I get the same error with --no-half on M1, I also have a warning torch 1.12.1 instead of 1.13.1 is it the cause of the issue ?

During the init:

Launching Web UI with arguments: --no-half
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
No module 'xformers'. Proceeding without it.
==============================================================================
You are running torch 1.12.1.
The program is tested to work with torch 1.13.1.

During the generation:
RuntimeError: Input type (MPSFloatType) and weight type (torch.FloatTensor) should be the same

from controlnet.

Mikubill avatar Mikubill commented on June 7, 2024

You should use webui.sh/webui-user.sh to startup and arguments will be filled like: --upcast-sampling --no-half-vae --use-cpu interrogate —no-half...

from controlnet.

SteakTree avatar SteakTree commented on June 7, 2024

Don't work for me, I get the same error with --no-half on M1, I also have a warning torch 1.12.1 instead of 1.13.1 is it the cause of the issue ?
I thought that this may be an issue but apparently, Mac should use Torch 1.12.1 according to this thread AUTOMATIC1111/stable-diffusion-webui#7495

from controlnet.

linusqqqq avatar linusqqqq commented on June 7, 2024
Bildschirmfoto 2023-07-17 um 19 18 09 Please help. It is still not working for me. M1 Air 8GB

from controlnet.

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.