Coder Social home page Coder Social logo

Comments (7)

wuxianjun666 avatar wuxianjun666 commented on June 8, 2024 1

image
can not delete sd_ctx->sd;
when delete sd_ctx->sd, it should delete GGMLModule many times, because there are many struct succeed GGMLModule,
image
but always gets stuck here,
image

from stable-diffusion.cpp.

wuxianjun666 avatar wuxianjun666 commented on June 8, 2024 1

Can you provide more information, such as the operating system you're using, the compiler version, the command-line arguments you're using, and the corresponding output?

So I had to eliminate this function so it would run fine and not get stuck.

image

image

from stable-diffusion.cpp.

leejet avatar leejet commented on June 8, 2024

Can you provide more information, such as the operating system you're using, the compiler version, the command-line arguments you're using, and the corresponding output?

from stable-diffusion.cpp.

wuxianjun666 avatar wuxianjun666 commented on June 8, 2024

Can you provide more information, such as the operating system you're using, the compiler version, the command-line arguments you're using, and the corresponding output?

I run in windows10, and the command is "cmake .. and cmake --build ."
the output is:

Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe

Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/bin/nvcc.exe

the error happened in when i finished generate image and save it, it begin to delete ctx->sd, but the program gets stuck.
The stuck position is in the function ~GGMLModule(), because the unet, vae, clip all succeed the struct GGMLModule,
so the function ~GGMLModule() will run many time. so i add some print in the function "void free_params_buffer()"
when run the code "LOG_DEBUG("params_ctx != NULL, BEGIN TO free .........");" the program gets stuck. there is the screenshot

image

image

from stable-diffusion.cpp.

snowyu avatar snowyu commented on June 8, 2024

Also this error occurs on Ubuntu 22.04.3 whenever Lora is used.

build/bin/sd -m models/Stable-diffusion/v1-5-pruned-emaonly.safetensors  --lora-model-dir models/Lora -v  -p "a cute cat<lora:lcm-lora-sdv1-5:1>" --cfg-scale 1 --steps 4
[DEBUG] ggml_extend.hpp:601  - unet compute buffer size: 560.71 MB
  |==================================================| 4/4 - 2.54s/it
[INFO ] stable-diffusion.cpp:1247 - sampling completed, taking 11.80s
[INFO ] stable-diffusion.cpp:1255 - generating 1 latent images completed, taking 11.94s
[INFO ] stable-diffusion.cpp:1257 - decoding 1 latents
[DEBUG] ggml_extend.hpp:601  - vae compute buffer size: 1665.00 MB
[DEBUG] stable-diffusion.cpp:1076 - computing vae [mode: DECODE] graph completed, taking 8.78s
[INFO ] stable-diffusion.cpp:1267 - latent 1 decoded, taking 8.78s
[INFO ] stable-diffusion.cpp:1271 - decode_first_stage completed, taking 8.78s
[INFO ] stable-diffusion.cpp:1288 - txt2img completed in 20.78s
save result image to 'output.png'
Segment fault(core dumped)

from stable-diffusion.cpp.

wuxianjun666 avatar wuxianjun666 commented on June 8, 2024

yes,when i do not use lora, it is normal

from stable-diffusion.cpp.

wuxianjun666 avatar wuxianjun666 commented on June 8, 2024

I found out what the problem is, in lora.hpp, comment out(注释) this line of code and it works!
image

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.