Spaces:
Running
on
Zero
Running
on
Zero
Update pipeline.py
Browse files- pipeline.py +6 -0
pipeline.py
CHANGED
@@ -280,6 +280,8 @@ class Flex2Pipeline(FluxControlPipeline):
|
|
280 |
dtype=self.vae.dtype,
|
281 |
)
|
282 |
else:
|
|
|
|
|
283 |
inpaint_image = self.prepare_image(
|
284 |
image=inpaint_image,
|
285 |
width=width,
|
@@ -316,6 +318,10 @@ class Flex2Pipeline(FluxControlPipeline):
|
|
316 |
|
317 |
# pack the controls
|
318 |
height_latent_controls, width_latent_controls = latent_controls.shape[2:]
|
|
|
|
|
|
|
|
|
319 |
packed_latent_controls = self._pack_latents(
|
320 |
latent_controls,
|
321 |
batch_size * num_images_per_prompt,
|
|
|
280 |
dtype=self.vae.dtype,
|
281 |
)
|
282 |
else:
|
283 |
+
print("inpaint_image.shape",inpaint_image.size)
|
284 |
+
print("inpaint_mask.shape",inpaint_mask.size)
|
285 |
inpaint_image = self.prepare_image(
|
286 |
image=inpaint_image,
|
287 |
width=width,
|
|
|
318 |
|
319 |
# pack the controls
|
320 |
height_latent_controls, width_latent_controls = latent_controls.shape[2:]
|
321 |
+
print("latent_controls.shape",latent_controls.shape)
|
322 |
+
print("num_control_channels.shape",num_control_channels)
|
323 |
+
print("height_latent_controls",height_latent_controls)
|
324 |
+
print("width_latent_controls",width_latent_controls)
|
325 |
packed_latent_controls = self._pack_latents(
|
326 |
latent_controls,
|
327 |
batch_size * num_images_per_prompt,
|