set modelType.FLOW, will cause beta scheduler to work properly

This commit is contained in:
silveroxides 2025-04-06 09:52:32 +02:00
parent de3f3ea28b
commit cb6ece9a18
2 changed files with 2 additions and 2 deletions

View File

@ -1059,7 +1059,7 @@ class Hunyuan3Dv2(BaseModel):
return out
class Chroma(BaseModel):
def __init__(self, model_config, model_type=ModelType.FLUX, device=None):
def __init__(self, model_config, model_type=ModelType.FLOW, device=None):
super().__init__(model_config, model_type, device=device, unet_model=comfy.ldm.chroma.model.Chroma)
def concat_cond(self, **kwargs):

View File

@ -1045,7 +1045,7 @@ class Chroma(supported_models_base.BASE):
supported_inference_dtypes = [torch.bfloat16, torch.float16, torch.float32]
def get_model(self, state_dict, prefix="", device=None):
out = model_base.Chroma(self, model_type=model_base.ModelType.FLUX, device=device)
out = model_base.Chroma(self, model_type=model_base.ModelType.FLOW, device=device)
return out
def clip_target(self, state_dict={}):