kimi000's picture
Add validated standalone relative1 raw2q 3000-step EMA and demo
2bcb04d verified
Raw History Blame Contribute Delete
301 Bytes
import torch
from diffusers import AutoencoderKL
class Flux1Autoencoder(AutoencoderKL):
@classmethod
def from_pretrained(cls, pretrained_model_name_or_path, **kwargs):
kwargs['torch_dtype']=torch.float32
return super().from_pretrained(pretrained_model_name_or_path, **kwargs)