refactor: add some sd vesion helper functions

This commit is contained in:
leejet
2024-11-23 13:02:44 +08:00
parent 1c168d98a5
commit b5f4932696
5 changed files with 59 additions and 38 deletions

View File

@@ -459,7 +459,7 @@ public:
bool use_video_decoder = false,
SDVersion version = VERSION_SD1)
: decode_only(decode_only), use_video_decoder(use_video_decoder) {
if (version == VERSION_SD3_2B || version == VERSION_SD3_5_8B || version == VERSION_SD3_5_2B || version == VERSION_FLUX_DEV || version == VERSION_FLUX_SCHNELL || version == VERSION_FLUX_LITE) {
if (sd_version_is_dit(version)) {
dd_config.z_channels = 16;
use_quant = false;
}