a802f59f55
- cmd/fn/doctor.go - cmd/fn/main.go - cpp/apps/primitives_gallery/playground/tables/CMakeLists.txt - cpp/apps/primitives_gallery/playground/tables/data_table.cpp - cpp/apps/primitives_gallery/playground/tables/data_table_logic.cpp - cpp/apps/primitives_gallery/playground/tables/data_table_logic.h - cpp/apps/primitives_gallery/playground/tables/self_test.cpp - cpp/apps/primitives_gallery/playground/tables/tql.cpp - cpp/apps/primitives_gallery/playground/tables/viz.cpp - cpp/apps/primitives_gallery/playground/tables/viz.h - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
17 lines
432 B
Python
17 lines
432 B
Python
"""SamplerName — subset de samplers compartido entre diffusers y stable-diffusion.cpp."""
|
|
|
|
from typing import Literal
|
|
|
|
# Sum type: valores validos de sampler para GenerationConfig.
|
|
# Subset estricto que tienen correspondencia directa en diffusers (schedulers)
|
|
# y en stable-diffusion.cpp (--sampling-method).
|
|
SamplerName = Literal[
|
|
"euler",
|
|
"euler_a",
|
|
"dpm++2m",
|
|
"dpm++2m_v2",
|
|
"heun",
|
|
"dpm2",
|
|
"lcm",
|
|
]
|