Skip to content

Commit e87d45a

Browse files
linoytsabanhlky
andauthored
Update examples/community/pipeline_flux_rf_inversion.py
Co-authored-by: hlky <[email protected]>
1 parent 84a1335 commit e87d45a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/community/pipeline_flux_rf_inversion.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@
6969
>>> img_url = "https://www.aiml.informatik.tu-darmstadt.de/people/mbrack/tennis.jpg"
7070
>>> image = download_image(img_url)
7171
72-
>>> _,__,___ = pipe.invert(image=image, num_inversion_steps=28, gamma=0.5)
72+
>>> inverted_latents, image_latents, latent_image_ids = pipe.invert(image=image, num_inversion_steps=28, gamma=0.5)
7373
7474
>>> edited_image = pipe(
7575
... prompt="a tomato",
76+
... inverted_latents=inverted_latents,
77+
... image_latents=image_latents,
78+
... latent_image_ids=latent_image_ids,
7679
... start_timestep=0,
7780
... stop_timestep=.38,
7881
... num_inference_steps=28,

0 commit comments

Comments
 (0)