Skip to content

Commit

Permalink
Fix VAE preview darkening
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Dec 13, 2024
1 parent 86450ce commit 48fcec2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stable-diffusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ class StableDiffusionGGML {
first_stage_model->compute(n_threads, latents, true, &result);
}
first_stage_model->free_compute_buffer();
ggml_tensor_scale(latents, scale_factor);

ggml_tensor_scale_output(result);
} else if (preview_mode == SD_PREVIEW_TAE) {
Expand Down

0 comments on commit 48fcec2

Please sign in to comment.