Spaces:
Running
on
Zero
Running
on
Zero
Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -291,7 +291,7 @@ class Flex2Pipeline(FluxControlPipeline):
|
|
291 |
)
|
292 |
inpaint_image = self.vae.encode(inpaint_image).latent_dist.sample(generator=generator)
|
293 |
inpaint_latents = (inpaint_image - self.vae.config.shift_factor) * self.vae.config.scaling_factor
|
294 |
-
height_inpaint_image, width_inpaint_image =
|
295 |
|
296 |
inpaint_mask = self.prepare_image(
|
297 |
image=inpaint_mask,
|
|
|
291 |
)
|
292 |
inpaint_image = self.vae.encode(inpaint_image).latent_dist.sample(generator=generator)
|
293 |
inpaint_latents = (inpaint_image - self.vae.config.shift_factor) * self.vae.config.scaling_factor
|
294 |
+
height_inpaint_image, width_inpaint_image = inpaint_image.shape[2:]
|
295 |
|
296 |
inpaint_mask = self.prepare_image(
|
297 |
image=inpaint_mask,
|