Skip to content

Commit bfdb8d2

Browse files
committed
refactor(tx): return schedule info
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 220ec21 commit bfdb8d2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stable-diffusion.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,8 +2053,12 @@ sd_sampling_stream_t* get_sampling_stream(sd_ctx_t* sd_ctx,
20532053
parameters_str += "Model: " + std::string(model_version_to_str[sd_ctx->sd->version]) + ", ";
20542054
parameters_str += "RNG: " + std::string(rng_types_argument_str[sd_ctx->sd->rng_type]) + ", ";
20552055
parameters_str += "Sampler: " + std::string(sample_methods_argument_str[sample_method]);
2056-
if (schedule == KARRAS) {
2057-
parameters_str += " karras";
2056+
{
2057+
auto schedule_type = schedule;
2058+
if (schedule_type == DEFAULT) {
2059+
schedule_type = DISCRETE;
2060+
}
2061+
parameters_str += " " + std::string(schedulers_argument_str[schedule_type]);
20582062
}
20592063

20602064
// Get learned condition

0 commit comments

Comments
 (0)