mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Support auto detecting some zsnr anime checkpoints.
This commit is contained in:
parent
2a18e98ccf
commit
8b275ce5be
@ -197,6 +197,8 @@ class SDXL(supported_models_base.BASE):
|
|||||||
self.sampling_settings["sigma_min"] = float(state_dict["edm_vpred.sigma_min"].item())
|
self.sampling_settings["sigma_min"] = float(state_dict["edm_vpred.sigma_min"].item())
|
||||||
return model_base.ModelType.V_PREDICTION_EDM
|
return model_base.ModelType.V_PREDICTION_EDM
|
||||||
elif "v_pred" in state_dict:
|
elif "v_pred" in state_dict:
|
||||||
|
if "ztsnr" in state_dict: #Some zsnr anime checkpoints
|
||||||
|
self.sampling_settings["zsnr"] = True
|
||||||
return model_base.ModelType.V_PREDICTION
|
return model_base.ModelType.V_PREDICTION
|
||||||
else:
|
else:
|
||||||
return model_base.ModelType.EPS
|
return model_base.ModelType.EPS
|
||||||
|
Loading…
Reference in New Issue
Block a user