Datasets:

ArXiv:
diffusers-benchmarking-bot commited on
Commit
3831fbd
·
verified ·
1 Parent(s): b119957

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. main/pipeline_flux_rf_inversion.py +1 -1
main/pipeline_flux_rf_inversion.py CHANGED
@@ -419,7 +419,7 @@ class RFInversionFluxPipeline(
419
  )
420
  image = image.to(dtype)
421
 
422
- x0 = self.vae.encode(image.to(self.device)).latent_dist.sample()
423
  x0 = (x0 - self.vae.config.shift_factor) * self.vae.config.scaling_factor
424
  x0 = x0.to(dtype)
425
  return x0, resized
 
419
  )
420
  image = image.to(dtype)
421
 
422
+ x0 = self.vae.encode(image.to(self._execution_device)).latent_dist.sample()
423
  x0 = (x0 - self.vae.config.shift_factor) * self.vae.config.scaling_factor
424
  x0 = x0.to(dtype)
425
  return x0, resized