Comments (7)
can not delete sd_ctx->sd;
when delete sd_ctx->sd, it should delete GGMLModule many times, because there are many struct succeed GGMLModule,
but always gets stuck here,
from stable-diffusion.cpp.
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.
from stable-diffusion.cpp.
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.
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
from stable-diffusion.cpp.
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.
yes,when i do not use lora, it is normal
from stable-diffusion.cpp.
I found out what the problem is, in lora.hpp, comment out(注释) this line of code and it works!
from stable-diffusion.cpp.
Related Issues (20)
- export some api to free the image memory HOT 1
- A few questions regarding Photomaker HOT 1
- report a bug instead of crash when vae_decoder_only=True and using img2img HOT 2
- txt2img can not be called multiple times. HOT 4
- Lora broken output HOT 19
- Different input, output VAE separately
- --steps 0
- Be careful posting anime pictures! HOT 1
- Inference bottleneck HOT 11
- Suggestion: simple one-call function to make stable-diffusion.dll accessible for newbie coders
- Split the api to support comfyui like workflow HOT 1
- memsize was hardcoded in preprocess_canny function
- Macos binary is using an absolute library path HOT 1
- Vulkan support HOT 1
- [Feature Request] Enable Flash Attention in the released binary
- Enabling Flash Attention completely breaks prompt following ("Dog" and "Cat" generates identical image)
- [Feature Request] Support for SDXS-512, allowing for real-time image generation on the CPU (~0.6 seconds per image) HOT 2
- Much higher RAM usage (2-3 times) compared to FastSDCPU when using the exact same models/settings HOT 2
- Any GUI / webui for this? HOT 7
- Access GPU data of result
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.