fix: guard against missing sampler/scheduler names (#1887)

This commit is contained in:
vmobilis
2026-08-19 22:31:19 +08:00
committed by GitHub
parent 760717a060
commit 16304cc3fd
3 changed files with 31 additions and 5 deletions
+4
View File
@@ -60,6 +60,8 @@ enum sample_method_t {
SAMPLE_METHOD_COUNT
};
extern SD_API const char* sample_method_to_str[];
enum scheduler_t {
DISCRETE_SCHEDULER,
KARRAS_SCHEDULER,
@@ -80,6 +82,8 @@ enum scheduler_t {
SCHEDULER_COUNT
};
extern SD_API const char* scheduler_to_str[];
enum prediction_t {
EPS_PRED,
V_PRED,