Comments (8)
Looks like the android stl has errors, or we use the regex functionality wrong.
from stable-diffusion.cpp.
@2haloes can your try changing the value here
https://github.com/leejet/stable-diffusion.cpp/blob/master/CMakeLists.txt#L38C1-L38C53
to cxx_std_17
?
from stable-diffusion.cpp.
I changed the value and built from scratch but I get the same exception
from stable-diffusion.cpp.
#16 solves the problem
from stable-diffusion.cpp.
I've tried with the PR and the issue still occurs with Termux
from stable-diffusion.cpp.
I have merged #16 and made some modifications. You can try pulling the latest master branch to see the changes.
from stable-diffusion.cpp.
with the modifications, its still working like normal for me, try "q4_0"?
~/stable-diffusion.cpp/build5 $ cp bin/sd ../sd3~/stable-diffusion.cpp/build5 $ cd ..
~/stable-diffusion.cpp $ ./sd3 -s 1 -m anything-v3-1-ggml-model-q4_0.bin -H 256 -W 192 -p "cat_ears, kimono" --steps 10
[INFO] stable-diffusion.cpp:2687 - loading model from 'anything-v3-1-ggml-model-q4_0.bin'
[INFO] stable-diffusion.cpp:2712 - ftype: q4_0
[INFO] stable-diffusion.cpp:2941 - total params size = 1431.22MB (clip 66.47MB, unet 1270.24MB, vae 94.51MB)
[INFO] stable-diffusion.cpp:2943 - loading model from 'anything-v3-1-ggml-model-q4_0.bin' completed, taking 1.68s
[INFO] stable-diffusion.cpp:3066 - condition graph use 70.83MB of memory: params 66.47MB, runtime 4.36MB (static 1.43MB, dynamic 2.93MB)
[INFO] stable-diffusion.cpp:3066 - condition graph use 70.83MB of memory: params 66.47MB, runtime 4.36MB (static 1.43MB, dynamic 2.93MB)
[INFO] stable-diffusion.cpp:3552 - get_learned_condition completed, taking 0.64s
[INFO] stable-diffusion.cpp:3568 - start sampling
[INFO] stable-diffusion.cpp:3260 - step 1 sampling completed, taking 13.10s
[INFO] stable-diffusion.cpp:3260 - step 2 sampling completed, taking 13.11s
[INFO] stable-diffusion.cpp:3260 - step 3 sampling completed, taking 13.14s
[INFO] stable-diffusion.cpp:3260 - step 4 sampling completed, taking 13.15s
[INFO] stable-diffusion.cpp:3260 - step 5 sampling completed, taking 13.14s
[INFO] stable-diffusion.cpp:3260 - step 6 sampling completed, taking 13.14s
[INFO] stable-diffusion.cpp:3260 - step 7 sampling completed, taking 13.16s
[INFO] stable-diffusion.cpp:3260 - step 8 sampling completed, taking 13.28s
[INFO] stable-diffusion.cpp:3260 - step 9 sampling completed, taking 13.04s
[INFO] stable-diffusion.cpp:3260 - step 10 sampling completed, taking 13.04s
[INFO] stable-diffusion.cpp:3287 - diffusion graph use 1316.63MB of memory: params 1270.24MB, runtime 46.39MB (static 14.67MB, dynamic 31.72MB)
[INFO] stable-diffusion.cpp:3573 - sampling completed, taking 131.30s
[INFO] stable-diffusion.cpp:3496 - vae graph use 503.63MB of memory: params 94.51MB, runtime 409.12MB (static 217.12MB, dynamic 192.00MB)
[INFO] stable-diffusion.cpp:3586 - decode_first_stage completed, taking 32.33s
[INFO] stable-diffusion.cpp:3600 - txt2img completed in 164.28s, use 1435.58MB of memory: peak params memory 1431.22MB, peak runtime memory 409.12MB
~/stable-diffusion.cpp $
from stable-diffusion.cpp.
It works great now, thank you very much!
I've only tested with a tiny image size so far (it would take roughly 20 minutes to generate an image at 512 by 512)
from stable-diffusion.cpp.
Related Issues (20)
- unsupported dtype 'F64' HOT 10
- lora can not free memory HOT 1
- IP Adapter Direct ML Errors Controlnet 1.1.431 and UP HOT 1
- "CUDA error" when set resolution higher than 1280 x 1280 HOT 5
- Support Segmind Stable Diffusion 1B HOT 2
- rocBLAS error: {...} No such file or directory for GPU arch : gfx1031 HOT 6
- In lora.hpp miss ggml_free(ctx0);
- Will Controlnet be supported in the future? HOT 2
- VAE-Tiling seems to be always enabled in the C-API of 36ec16a HOT 1
- How do specify the upscale size? HOT 2
- to do list remove the winograd conv 2d
- Getting always black image using XL models HOT 2
- Is there a way to use controlnet inpaint?
- Using (UTF-8) accented characters give a segfault
- Are SDXL Controlnet models supported? HOT 1
- "How can I specify a particular GPU?" HOT 4
- Exception at ggml_free when lora is used in the prompt and free_sd_ctx called HOT 1
- add support for StableCascade (würstchen) HOT 2
- Error when use with latest GGML HOT 16
- Not enough space in the context's memory pool with ControlNet HOT 5
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 stable-diffusion.cpp.