Skip to content

Commit ac89477

Browse files
committed
up
1 parent 3c278c0 commit ac89477

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/diffusers/modular_pipelines/flux/before_denoise.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def calculate_shift(
103103
return mu
104104

105105

106-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._pack_latents
107106
def _pack_latents(latents, batch_size, num_channels_latents, height, width):
108107
latents = latents.view(batch_size, num_channels_latents, height // 2, 2, width // 2, 2)
109108
latents = latents.permute(0, 2, 4, 1, 3, 5)
@@ -112,7 +111,6 @@ def _pack_latents(latents, batch_size, num_channels_latents, height, width):
112111
return latents
113112

114113

115-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._prepare_latent_image_ids
116114
def _prepare_latent_image_ids(batch_size, height, width, device, dtype):
117115
latent_image_ids = torch.zeros(height, width, 3)
118116
latent_image_ids[..., 1] = latent_image_ids[..., 1] + torch.arange(height)[:, None]

src/diffusers/modular_pipelines/flux/decoders.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
3030

3131

32-
# Copied from diffusers.pipelines.flux.pipeline_flux.FluxPipeline._unpack_latents
3332
def _unpack_latents(latents, height, width, vae_scale_factor):
3433
batch_size, num_patches, channels = latents.shape
3534

0 commit comments

Comments
 (0)