mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 11:26:34 +00:00
feat: print sigma values before inference (#2205)
This commit is contained in:
1 parent
0886f11b6b
commit
d234ac62fa
1 file changed
+12
@@ -2871,6 +2871,18 @@ sd::Tensor<float> StableDiffusionGGML::sample(const std::shared_ptr<DiffusionMod
|
|||||||
return output;
|
return output;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
{
|
||||||
|
std::ostringstream oss;
|
||||||
|
oss << std::setprecision(std::numeric_limits<float>::max_digits10);
|
||||||
|
for (size_t i = 0; i < sigmas.size(); ++i) {
|
||||||
|
if (i != 0) {
|
||||||
|
oss << ",";
|
||||||
|
}
|
||||||
|
oss << sigmas[i];
|
||||||
|
}
|
||||||
|
LOG_DEBUG("sigmas: %s", oss.str().c_str());
|
||||||
|
}
|
||||||
|
|
||||||
auto x0_opt = sample_k_diffusion(method, denoise, x_t, sigmas, sampler_rng, eta, is_flow_denoiser, extra_sample_args, denoiser);
|
auto x0_opt = sample_k_diffusion(method, denoise, x_t, sigmas, sampler_rng, eta, is_flow_denoiser, extra_sample_args, denoiser);
|
||||||
if (x0_opt.empty()) {
|
if (x0_opt.empty()) {
|
||||||
LOG_ERROR("Diffusion model sampling failed");
|
LOG_ERROR("Diffusion model sampling failed");
|
||||||
|
|||||||
Reference in new issue
Block a user