Giter Site home page Giter Site logo

Comments (8)

Green-Sky avatar Green-Sky commented on May 22, 2024

Looks like the android stl has errors, or we use the regex functionality wrong.

from stable-diffusion.cpp.

Green-Sky avatar Green-Sky commented on May 22, 2024

@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.

2haloes avatar 2haloes commented on May 22, 2024

I changed the value and built from scratch but I get the same exception

from stable-diffusion.cpp.

ClashSAN avatar ClashSAN commented on May 22, 2024

#16 solves the problem

from stable-diffusion.cpp.

2haloes avatar 2haloes commented on May 22, 2024

I've tried with the PR and the issue still occurs with Termux

from stable-diffusion.cpp.

leejet avatar leejet commented on May 22, 2024

I have merged #16 and made some modifications. You can try pulling the latest master branch to see the changes.

from stable-diffusion.cpp.

ClashSAN avatar ClashSAN commented on May 22, 2024

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.

2haloes avatar 2haloes commented on May 22, 2024

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)

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.