Comments (12)
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.
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.
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.
Is the problem solved now?
from controlnet.
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.
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.
That commandline args thing worked! At least on my M1 machine. Thanks so much! This is awesome :)
from controlnet.
--no-half
works!
from controlnet.
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.
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.
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.
from controlnet.
Related Issues (20)
- How long it takes to test an image HOT 3
- Unable to install gradio=3.40.1 HOT 3
- Training a ControlNet to generate furnished room -> empty room (and vice versa). Improvement plateau...
- Comfy UI / Stable Diffusion error
- I would like a complete technical description of how controlnet works
- Unable to Connect to Hugging Face for Model Download in China Mainland HOT 4
- save checkpoint
- How do I find the size of the set epoch
- dataset include different sizes
- trainable copy also means "require_grad==False"
- Art for Web Platforms grid, various set of product items, kitchenware, cutlery, biodegradable bags, bioplastics, eco friendly, trashbag, pet waste, varied, grid, 3D objects set, plastic bags, Creating art for web platforms, often for websites, online galleries, or digital user experiences. Negative prompt: text, repetition, same, noisy, noise, glitch, grainy, blurred, pixelated, unrealistic, malformed, bad, abnormal, print art, digital art Steps: 30, Sampler: Euler a, CFG scale: 7, Seed: 1178069234, Size: 1024x1024, Model hash: 9550adb9d6, Model: nightvisionXLPhotorealisticPortrait_v0743ReleaseBakedvae, ControlNet 0: "Module: softedge_pidinet, Model: bdsqlsz_controlllite_xl_softedge [c28ff1c4], Weight: 0.5, Resize Mode: Crop and Resize, Low Vram: False, Processor Res: 512, Guidance Start: 0, Guidance End: 0.19, Pixel Perfect: False, Control Mode: Balanced, Hr Option: Both, Save Detected Map: True", Version: v1.7.0 Error Time taken: 16.2 sec. A: 5.58 GB, R: 12.72 GB, Sys: 13.2/15.7314 GB (84.1%)
- cannot import name 'Undefined' from 'pydantic.fields' Error HOT 2
- Use openpose in Guessmode
- nvm
- Load CLIPTokenizer error HOT 1
- erorr "cond_stage_model.transformer.text_model.embeddings.position_ids" HOT 2
- training is so slow HOT 2
- ERROR: Exception in ASGI application
- ControlNet cannot refresh the model
- weights file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from controlnet.