Skip to content

Commit 7436e30

Browse files
authored
Fix model card of LoRA (#2114)
Fix
1 parent 1497650 commit 7436e30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: examples/dreambooth/train_dreambooth_lora.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def save_model_card(repo_name, images=None, base_model=str, prompt=str, repo_fol
8181
model_card = f"""
8282
# LoRA DreamBooth - {repo_name}
8383
84-
These are LoRA adaption weights for {repo_name}. The weights were trained on {prompt} using [DreamBooth](https://dreambooth.github.io/). You can find some example images in the following. \n
84+
These are LoRA adaption weights for {base_model}. The weights were trained on {prompt} using [DreamBooth](https://dreambooth.github.io/). You can find some example images in the following. \n
8585
{img_str}
8686
"""
8787
with open(os.path.join(repo_folder, "README.md"), "w") as f:

Diff for: examples/text_to_image/train_text_to_image_lora.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def save_model_card(repo_name, images=None, base_model=str, dataset_name=str, re
7373
"""
7474
model_card = f"""
7575
# LoRA text2image fine-tuning - {repo_name}
76-
These are LoRA adaption weights for {repo_name}. The weights were fine-tuned on the {dataset_name} dataset. You can find some example images in the following. \n
76+
These are LoRA adaption weights for {base_model}. The weights were fine-tuned on the {dataset_name} dataset. You can find some example images in the following. \n
7777
{img_str}
7878
"""
7979
with open(os.path.join(repo_folder, "README.md"), "w") as f:

0 commit comments

Comments
 (0)