mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 19:36:33 +00:00
refactor: unify runner lifecycles and weight residency (#1940)
This commit is contained in:
1 parent
6c57cc3b38
commit
462d675018
78 files changed
+2963
-2051
No files matched your search
+1
-1
@@ -715,7 +715,7 @@ std::vector<ADetailerDetection> ADetailerGGML::predict(sd_image_t image,
|
||||
LetterboxInput input = make_letterbox_input(image, params.input_size);
|
||||
int64_t start = ggml_time_ms();
|
||||
sd::Tensor<float> raw = detector->compute(n_threads, input.tensor);
|
||||
detector->free_compute_buffer();
|
||||
detector->runner_end();
|
||||
if (raw.empty()) {
|
||||
LOG_ERROR("YOLOv8 detector inference failed");
|
||||
return {};
|
||||
|
||||
Reference in new issue
Block a user