mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-07-30 06:40:41 -05:00
perf: free unused params immediately to reduce memory usage
This commit is contained in:
3
main.cpp
3
main.cpp
@@ -322,7 +322,8 @@ int main(int argc, const char* argv[]) {
|
||||
}
|
||||
init_img.assign(img_data, img_data + (opt.w * opt.h * c));
|
||||
}
|
||||
StableDiffusion sd(opt.n_threads, vae_decode_only);
|
||||
|
||||
StableDiffusion sd(opt.n_threads, vae_decode_only, true);
|
||||
if (!sd.load_from_file(opt.model_path)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user