huggingface / huggingface/diffusers

train_dreambooth_lora_flux_kontext.py: error: the following arguments are required: --instance_prompt

Open
#11,973 4 comments 0 reactions 0 assignees View on GitHub
bug stale
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

### Describe the bug

train_dreambooth_lora_flux_kontext.py: error: the following arguments are required: --instance_prompt

### Reproduction

accelerate launch --main_process_port 29513 train_dreambooth_lora_flux_kontext.py \
--pretrained_model_name_or_path=black-forest-labs/FLUX.1-Kontext-dev \
--output_dir="kontext-i2i" \
--dataset_name="/root/paddlejob/workspace/env_run/output/wanghuake/DATA/merged_output" \
--image_column="output" --cond_image_column="file_name" --caption_column="instruction" \
--mixed_precision="bf16" \
--resolution=1024 \
--train_batch_size=1 \
--guidance_scale=1 \
--gradient_accumulation_steps=4 \
--gradient_checkpointing \
--optimizer="adamw" \
--use_8bit_adam \
--cache_latents \
--learning_rate=1e-4 \
--lr_scheduler="constant" \
--lr_warmup_steps=200 \
--max_train_steps=1000 \
--rank=16 \
--seed="0" \

### Logs

```shell

```

### System Info

train_dreambooth_lora_flux_kontext.py: error: the following arguments are required: --instance_prompt

### Who can help?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.