Support auto detecting some zsnr anime checkpoints.

This commit is contained in:
comfyanonymous 2024-11-11 05:25:16 -05:00
parent 2a18e98ccf
commit 8b275ce5be
1 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,8 @@ class SDXL(supported_models_base.BASE):
self.sampling_settings["sigma_min"] = float(state_dict["edm_vpred.sigma_min"].item())
return model_base.ModelType.V_PREDICTION_EDM
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
else:
return model_base.ModelType.EPS