mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-14 23:53:30 +00:00
set modelType.FLOW, will cause beta scheduler to work properly
This commit is contained in:
parent
de3f3ea28b
commit
cb6ece9a18
@ -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):
|
||||
|
@ -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={}):
|
||||
|
Loading…
Reference in New Issue
Block a user