mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-10-28 07:23:20 +08:00
feat: print sigma values before inference (#2205)
This commit is contained in:
@@ -2871,6 +2871,18 @@ sd::Tensor<float> StableDiffusionGGML::sample(const std::shared_ptr<DiffusionMod
|
||||
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);
|
||||
if (x0_opt.empty()) {
|
||||
LOG_ERROR("Diffusion model sampling failed");
|
||||
|
||||
Reference in New Issue
Block a user