mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 19:36:33 +00:00
fix: skip reference image VAE encoding when latents have no consumer (#2207)
This commit is contained in:
1 parent
ea209dbfcf
commit
0886f11b6b
1 file changed
+5
-1
@@ -313,9 +313,13 @@ namespace sd::pipeline {
|
||||
LOG_INFO("EDIT mode");
|
||||
}
|
||||
|
||||
bool skip_vae_encoding = (sd->version == VERSION_HIDREAM_O1) || !(
|
||||
ref_image_params.pass_to_dit || ref_image_params.vlm_use_vae_input ||
|
||||
sd_version_is_unet_edit(sd->version) || sd_version_is_pid(sd->version));
|
||||
|
||||
std::vector<sd::Tensor<float>> ref_latents;
|
||||
for (size_t i = 0; i < ref_images.size(); i++) {
|
||||
if (sd->version == VERSION_HIDREAM_O1) {
|
||||
if (skip_vae_encoding) {
|
||||
continue;
|
||||
}
|
||||
sd::Tensor<float> ref_latent;
|
||||
|
||||
Reference in new issue
Block a user