Skip to content

Load VAE encoder in img2img pipeline#14

Merged
TroyHernandez merged 1 commit into
mainfrom
fix/img2img-load-encoder
May 1, 2026
Merged

Load VAE encoder in img2img pipeline#14
TroyHernandez merged 1 commit into
mainfrom
fix/img2img-load-encoder

Conversation

@TroyHernandez
Copy link
Copy Markdown
Contributor

Summary

  • img2img() called load_pipeline() without i2i = TRUE, so the VAE encoder was never loaded and pipeline$encoder(image_tensor) died with attempt to apply non-function.
  • One-line fix: pass i2i = TRUE so load_pipeline() loads the encoder component.
  • Bumps version to 0.0.2.

Test plan

  • Reproduced original error on Blackwell with model_name = "sdxl", use_native_* flags
  • After fix: img2img completes end-to-end, produces output PNG

img2img() called load_pipeline() without i2i = TRUE, so the VAE
encoder was never loaded and pipeline$encoder() failed with
"attempt to apply non-function". Bump version to 0.0.2.
@TroyHernandez TroyHernandez merged commit e3a87f4 into main May 1, 2026
0 of 2 checks passed
@TroyHernandez TroyHernandez deleted the fix/img2img-load-encoder branch May 1, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant