linoyts HF Staff commited on
Commit
ed4e0e4
·
verified ·
1 Parent(s): af04736

Update kontext_pipeline.py

Browse files
Files changed (1) hide show
  1. kontext_pipeline.py +1 -0
kontext_pipeline.py CHANGED
@@ -954,6 +954,7 @@ class FluxKontextPipeline(
954
  image_height = image_height // multiple_of * multiple_of
955
  image = self.image_processor.resize(image, image_height, image_width)
956
  image = self.image_processor.preprocess(image, image_height, image_width)
 
957
 
958
  # 4. Prepare latent variables
959
  num_channels_latents = self.transformer.config.in_channels // 4
 
954
  image_height = image_height // multiple_of * multiple_of
955
  image = self.image_processor.resize(image, image_height, image_width)
956
  image = self.image_processor.preprocess(image, image_height, image_width)
957
+ width, height = image_width, image_height
958
 
959
  # 4. Prepare latent variables
960
  num_channels_latents = self.transformer.config.in_channels // 4