Update pipeline.py
Browse filesForcing output size to match control image size
- 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,
|