Update README.md
Browse files
README.md
CHANGED
@@ -40,4 +40,25 @@ These are LoRA adaption weights for stabilityai/stable-diffusion-2. The weights
|
|
40 |
|
41 |
## Training details
|
42 |
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
## Training details
|
42 |
|
43 |
+
fine tuned using script>
|
44 |
+
``` bash
|
45 |
+
! accelerate launch /kaggle/working/diffusers/examples/text_to_image/train_text_to_image_lora.py \
|
46 |
+
--pretrained_model_name_or_path="stabilityai/stable-diffusion-2" \
|
47 |
+
--dataset_name="ButterChicken98/plantvillage-image-text-pairs" \
|
48 |
+
--dataloader_num_workers=8 \
|
49 |
+
--resolution=256 --random_flip \
|
50 |
+
--train_batch_size=16 \
|
51 |
+
--gradient_accumulation_steps=4 \
|
52 |
+
--max_train_steps=3000 \
|
53 |
+
--learning_rate=1e-04 \
|
54 |
+
--max_grad_norm=1 \
|
55 |
+
--lr_scheduler="cosine" --lr_warmup_steps=0 \
|
56 |
+
--output_dir="/kaggle/working" \
|
57 |
+
--push_to_hub \
|
58 |
+
--caption_column="caption" \
|
59 |
+
--image_column="image" \
|
60 |
+
--hub_model_id="plantVillage-stableDiffusion-2-iter2_with_one_caption" \
|
61 |
+
--checkpointing_steps=1000 \
|
62 |
+
--validation_prompt="Tomato YellowLeaf Curl Virus" \
|
63 |
+
--seed=1337
|
64 |
+
```
|