Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def train_dreambooth_blora_sdxl(instance_data_dir, b_lora_trained_folder, instan
|
|
23 |
f"--instance_data_dir={instance_data_dir}",
|
24 |
f"--output_dir={b_lora_trained_folder}",
|
25 |
f"--instance_prompt='{instance_prompt}'",
|
26 |
-
f"--validation_prompt=
|
27 |
"--resolution=1024",
|
28 |
"--rank=64",
|
29 |
"--train_batch_size=1",
|
@@ -57,8 +57,8 @@ def main(image_path, b_lora_trained_folder, instance_prompt):
|
|
57 |
shutil.copy(image_path, local_dir)
|
58 |
print(f"source image has been copied in {local_dir} directory")
|
59 |
|
60 |
-
max_train_steps =
|
61 |
-
checkpoint_steps =
|
62 |
|
63 |
train_dreambooth_blora_sdxl(local_dir, b_lora_trained_folder, instance_prompt, max_train_steps, checkpoint_steps)
|
64 |
|
|
|
23 |
f"--instance_data_dir={instance_data_dir}",
|
24 |
f"--output_dir={b_lora_trained_folder}",
|
25 |
f"--instance_prompt='{instance_prompt}'",
|
26 |
+
f"--validation_prompt=a teddy bear in {instance_prompt} style",
|
27 |
"--resolution=1024",
|
28 |
"--rank=64",
|
29 |
"--train_batch_size=1",
|
|
|
57 |
shutil.copy(image_path, local_dir)
|
58 |
print(f"source image has been copied in {local_dir} directory")
|
59 |
|
60 |
+
max_train_steps = 10
|
61 |
+
checkpoint_steps = 0
|
62 |
|
63 |
train_dreambooth_blora_sdxl(local_dir, b_lora_trained_folder, instance_prompt, max_train_steps, checkpoint_steps)
|
64 |
|