Update README.md
Browse files
README.md
CHANGED
|
@@ -17,3 +17,43 @@ configs:
|
|
| 17 |
- split: train
|
| 18 |
path: data/train-*
|
| 19 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
- split: train
|
| 18 |
path: data/train-*
|
| 19 |
---
|
| 20 |
+
|
| 21 |
+
# Nier2b Dataset
|
| 22 |
+
|
| 23 |
+
## Description
|
| 24 |
+
|
| 25 |
+
The dataset contains images and corresponding captions, which were used to fine-tune the diffusion models.
|
| 26 |
+
|
| 27 |
+
## Usage
|
| 28 |
+
|
| 29 |
+
To use this dataset for DreamBooth LoRA training, follow the instructions provided in the `diffusers` library. Here is an example of how to use this dataset:
|
| 30 |
+
```bash
|
| 31 |
+
export MODEL_NAME="black-forest-labs/FLUX.1-dev"
|
| 32 |
+
export OUTPUT_DIR=<your output directory>
|
| 33 |
+
|
| 34 |
+
accelerate launch /diffusers/examples/dreambooth/train_dreambooth_lora_flux.py \
|
| 35 |
+
--pretrained_model_name_or_path=$MODEL_NAME \
|
| 36 |
+
--output_dir=$OUTPUT_DIR \
|
| 37 |
+
--mixed_precision="bf16" \
|
| 38 |
+
--instance_prompt="nier2b" \
|
| 39 |
+
--dataset_name="Pain-Killer/nier2b-dataset" \
|
| 40 |
+
--caption_column="caption" \
|
| 41 |
+
--resolution=512 \
|
| 42 |
+
--train_batch_size=1 \
|
| 43 |
+
--guidance_scale=1 \
|
| 44 |
+
--gradient_accumulation_steps=4 \
|
| 45 |
+
--optimizer="prodigy" \
|
| 46 |
+
--learning_rate=1. \
|
| 47 |
+
--report_to="wandb" \
|
| 48 |
+
--lr_scheduler="constant" \
|
| 49 |
+
--lr_warmup_steps=0 \
|
| 50 |
+
--max_train_steps=500 \
|
| 51 |
+
--seed="0" \
|
| 52 |
+
--validation_prompt="nier2b" \
|
| 53 |
+
--validation_epochs=100 \
|
| 54 |
+
--push_to_hub
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## Citation
|
| 58 |
+
|
| 59 |
+
If you use this dataset in your research, please cite the link to this dataset.
|