Comments (4)
This is not a bug, it's expected behavior. When you want to generate images multiple times using the same sd_ctx_t, you need to set free_params_immediately to false.
from stable-diffusion.cpp.
This is not a bug, it's expected behavior. When you want to generate images multiple times using the same sd_ctx_t, you need to set free_params_immediately to false.
That’s why I say enhancement
from stable-diffusion.cpp.
If you want to generate images multiple times with free_params_immediately
set to true
, you'll need to reload the parameters from disk into memory each time you generate. This is essentially the same as destroying sd_ctx_t
and creating a new one. Perhaps what we need is a new parameter to control loading parameters into VRAM only when necessary for the corresponding model, releasing them from VRAM after execution to reduce the VRAM Usage.
from stable-diffusion.cpp.
I think so too, let's see if I can make it happen
from stable-diffusion.cpp.
Related Issues (20)
- 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
- HIP build failing HOT 2
- Error: Unsupported op TIMESTEP_EMBEDDING HOT 5
- SD build static libggml.dylib HOT 2
- service deployment HOT 1
- Artifacts in lower portion of image when generating images of size 1024x1024 HOT 4
- slow ggml_vec_dot_f16 operator on Android HOT 1
- Unable to build with Hipblas HOT 1
- GGML_ASSERT error on ROCm RX 6800 HOT 8
- ggml-metal.m - GGML_ASSERT: ne00 % 4 == 0 when generating images of dimensions 640x640 HOT 3
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.