Skip to content

Commit

Permalink
feat: add sdxl v-pred suppport (leejet#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
stduhpf committed Feb 6, 2025
1 parent ef7c98a commit 262b9b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stable-diffusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@ class StableDiffusionGGML {
if (is_using_v_parameterization_for_sd2(ctx, sd_version_is_inpaint(version))) {
is_using_v_parameterization = true;
}
} else if (sd_version_is_sdxl(version)) {
if (model_loader.tensor_storages_types.find("v_pred") != model_loader.tensor_storages_types.end()) {
is_using_v_parameterization = true;
}
} else if (version == VERSION_SVD) {
// TODO: V_PREDICTION_EDM
is_using_v_parameterization = true;
Expand Down

0 comments on commit 262b9b4

Please sign in to comment.