mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-18 22:08:13 +00:00
16 lines
416 B
Python
16 lines
416 B
Python
from .sd_vae_encoder import SDVAEEncoderStateDictConverter, SDVAEEncoder
|
|
|
|
|
|
class SDXLVAEEncoder(SDVAEEncoder):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.scaling_factor = 0.13025
|
|
|
|
def state_dict_converter(self):
|
|
return SDXLVAEEncoderStateDictConverter()
|
|
|
|
|
|
class SDXLVAEEncoderStateDictConverter(SDVAEEncoderStateDictConverter):
|
|
def __init__(self):
|
|
super().__init__()
|