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

This commit is contained in:
vmobilis authored and GitHub committed 2026-08-19 22:31:19 +08:00
1 parent 760717a060
commit 16304cc3fd
3 files changed
+31 -5

No files matched your search

+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,