mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13: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
|
return out
|
||||||
|
|
||||||
class Chroma(BaseModel):
|
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)
|
super().__init__(model_config, model_type, device=device, unet_model=comfy.ldm.chroma.model.Chroma)
|
||||||
|
|
||||||
def concat_cond(self, **kwargs):
|
def concat_cond(self, **kwargs):
|
||||||
|
@ -1045,7 +1045,7 @@ class Chroma(supported_models_base.BASE):
|
|||||||
supported_inference_dtypes = [torch.bfloat16, torch.float16, torch.float32]
|
supported_inference_dtypes = [torch.bfloat16, torch.float16, torch.float32]
|
||||||
|
|
||||||
def get_model(self, state_dict, prefix="", device=None):
|
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
|
return out
|
||||||
|
|
||||||
def clip_target(self, state_dict={}):
|
def clip_target(self, state_dict={}):
|
||||||
|
Loading…
Reference in New Issue
Block a user