Text-to-Image
Diffusers
Safetensors
LibreFluxIPAdapterPipeline
neuralvfx commited on
Commit
7b16c2c
·
verified ·
1 Parent(s): ea3864b

Update pipeline.py

Browse files

Forcing output size to match control image size

Files changed (1) hide show
  1. pipeline.py +5 -0
pipeline.py CHANGED
@@ -894,6 +894,11 @@ class LibreFluxIpAdapterPipeline(DiffusionPipeline, SD3LoraLoaderMixin):
894
 
895
  inner_module = self.controlnet
896
 
 
 
 
 
 
897
  control_image = self.prepare_image(
898
  image=control_image,
899
  width=width,
 
894
 
895
  inner_module = self.controlnet
896
 
897
+ width, height = control_image.size
898
+ height = (height//8)*8
899
+ width = (widt//8)*8
900
+
901
+
902
  control_image = self.prepare_image(
903
  image=control_image,
904
  width=width,