Skip to content

Commit 9ac1bde

Browse files
authored
Update README_flux.md
add note on installing from commit `05e7a854d0a5661f5b433f6dd5954c224b104f0b`
1 parent 53bf41d commit 9ac1bde

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

examples/dreambooth/README_flux.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,19 @@ This reduces memory requirements significantly w/o a significant quality loss. N
263263
## Training Kontext
264264

265265
[Kontext](https://bfl.ai/announcements/flux-1-kontext) lets us perform image editing as well as image generation. Even though it can accept both image and text as inputs, one can use it for text-to-image (T2I) generation, too. We
266-
provide a simple script for LoRA fine-tuning Kontext in [train_dreambooth_lora_flux_kontext.py](./train_dreambooth_lora_flux_kontext.py) for T2I. The optimizations discussed above apply this script, too.
266+
provide a simple script for LoRA fine-tuning Kontext in [train_dreambooth_lora_flux_kontext.py](./train_dreambooth_lora_flux_kontext.py) for both T2I and I2I. The optimizations discussed above apply this script, too.
267267

268-
Make sure to follow the [instructions to set up your environment](#running-locally-with-pytorch) before proceeding to the rest of the section.
268+
**important**
269+
270+
> [!NOTE]
271+
> To make sure you can successfully run the latest version of the kontext example script, we highly recommend installing from source, specifically from the commit mentioned below.
272+
> To do this, execute the following steps in a new virtual environment:
273+
> ```
274+
> git clone https://github.com/huggingface/diffusers
275+
> cd diffusers
276+
> git checkout 05e7a854d0a5661f5b433f6dd5954c224b104f0b
277+
> pip install -e .
278+
> ```
269279
270280
Below is an example training command:
271281
@@ -343,4 +353,4 @@ To enable aspect ratio bucketing, pass `--aspect_ratio_buckets` argument with a
343353
Since Flux Kontext finetuning is still an experimental phase, we encourage you to explore different settings and share your insights! 🤗
344354

345355
## Other notes
346-
Thanks to `bghira` and `ostris` for their help with reviewing & insight sharing ♥️
356+
Thanks to `bghira` and `ostris` for their help with reviewing & insight sharing ♥️

0 commit comments

Comments
 (0)