Skip to content

Commit c12a61f

Browse files
committed
up
1 parent debafc6 commit c12a61f

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

examples/community/pipeline_flux_differential_img2img.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def check_inputs(
502502
raise ValueError(f"`max_sequence_length` cannot be greater than 512 but is {max_sequence_length}")
503503

504504
@staticmethod
505-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._prepare_latent_image_ids
505+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._prepare_latent_image_ids
506506
def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
507507
latent_image_ids = torch.zeros(height // 2, width // 2, 3)
508508
latent_image_ids[..., 1] = latent_image_ids[..., 1] + torch.arange(height // 2)[:, None]
@@ -517,7 +517,7 @@ def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
517517
return latent_image_ids.to(device=device, dtype=dtype)
518518

519519
@staticmethod
520-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._pack_latents
520+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._pack_latents
521521
def _pack_latents(latents, batch_size, num_channels_latents, height, width):
522522
latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
523523
latents = latents.permute(0, 2, 4, 1, 3, 5)

examples/community/pipeline_flux_kontext_multiple_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def check_inputs(
567567
raise ValueError(f"`max_sequence_length` cannot be greater than 512 but is {max_sequence_length}")
568568

569569
@staticmethod
570-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._prepare_latent_image_ids
570+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._prepare_latent_image_ids
571571
def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
572572
latent_image_ids = torch.zeros(height, width, 3)
573573
latent_image_ids[..., 1] = latent_image_ids[..., 1] + torch.arange(height)[:, None]
@@ -582,7 +582,7 @@ def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
582582
return latent_image_ids.to(device=device, dtype=dtype)
583583

584584
@staticmethod
585-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._pack_latents
585+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._pack_latents
586586
def _pack_latents(latents, batch_size, num_channels_latents, height, width):
587587
latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
588588
latents = latents.permute(0, 2, 4, 1, 3, 5)

examples/community/pipeline_flux_semantic_guidance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def check_inputs(
640640
raise ValueError(f"`max_sequence_length` cannot be greater than 512 but is {max_sequence_length}")
641641

642642
@staticmethod
643-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._prepare_latent_image_ids
643+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._prepare_latent_image_ids
644644
def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
645645
latent_image_ids = torch.zeros(height, width, 3)
646646
latent_image_ids[..., 1] = latent_image_ids[..., 1] + torch.arange(height)[:, None]
@@ -655,7 +655,7 @@ def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
655655
return latent_image_ids.to(device=device, dtype=dtype)
656656

657657
@staticmethod
658-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._pack_latents
658+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._pack_latents
659659
def _pack_latents(latents, batch_size, num_channels_latents, height, width):
660660
latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
661661
latents = latents.permute(0, 2, 4, 1, 3, 5)

examples/community/pipline_flux_fill_controlnet_Inpaint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def check_inputs(
534534
raise ValueError(f"`max_sequence_length` cannot be greater than 512 but is {max_sequence_length}")
535535

536536
@staticmethod
537-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._prepare_latent_image_ids
537+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._prepare_latent_image_ids
538538
def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
539539
latent_image_ids = torch.zeros(height, width, 3)
540540
latent_image_ids[..., 1] = latent_image_ids[..., 1] + torch.arange(height)[:, None]
@@ -549,7 +549,7 @@ def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
549549
return latent_image_ids.to(device=device, dtype=dtype)
550550

551551
@staticmethod
552-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._pack_latents
552+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._pack_latents
553553
def _pack_latents(latents, batch_size, num_channels_latents, height, width):
554554
latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
555555
latents = latents.permute(0, 2, 4, 1, 3, 5)

src/diffusers/pipelines/bria_fibo/pipeline_bria_fibo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def _unpack_latents(latents, height, width, vae_scale_factor):
367367
return latents
368368

369369
@staticmethod
370-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._prepare_latent_image_ids
370+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._prepare_latent_image_ids
371371
def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
372372
latent_image_ids = torch.zeros(height, width, 3)
373373
latent_image_ids[..., 1] = latent_image_ids[..., 1] + torch.arange(height)[:, None]
@@ -400,7 +400,7 @@ def _pack_latents_no_patch(latents, batch_size, num_channels_latents, height, wi
400400
return latents
401401

402402
@staticmethod
403-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._pack_latents
403+
# Copied from diffusers.pipelines.flux.pipeline_flux_utils.FluxMixin._pack_latents
404404
def _pack_latents(latents, batch_size, num_channels_latents, height, width):
405405
latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
406406
latents = latents.permute(0, 2, 4, 1, 3, 5)

0 commit comments

Comments
 (0)