Spaces:
Configuration error
Configuration error
update
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def monkeypatching(alpha): #, prompt, pipe): finetuned_lora_weights
|
|
37 |
return image
|
38 |
|
39 |
def accelerate_train_lora(steps):
|
40 |
-
accelerate launch "./train_lora_dreambooth.py" \
|
41 |
--pretrained_model_name_or_path=MODEL_NAME \
|
42 |
--instance_data_dir=INSTANCE_DIR \
|
43 |
--output_dir=OUTPUT_DIR \
|
@@ -48,7 +48,7 @@ def accelerate_train_lora(steps):
|
|
48 |
--learning_rate=1e-4 \
|
49 |
--lr_scheduler="constant" \
|
50 |
--lr_warmup_steps=0 \
|
51 |
-
--max_train_steps=steps #30000
|
52 |
return
|
53 |
|
54 |
with gr.Blocks() as demo:
|
|
|
37 |
return image
|
38 |
|
39 |
def accelerate_train_lora(steps):
|
40 |
+
subprocess.run(accelerate launch "./train_lora_dreambooth.py" \
|
41 |
--pretrained_model_name_or_path=MODEL_NAME \
|
42 |
--instance_data_dir=INSTANCE_DIR \
|
43 |
--output_dir=OUTPUT_DIR \
|
|
|
48 |
--learning_rate=1e-4 \
|
49 |
--lr_scheduler="constant" \
|
50 |
--lr_warmup_steps=0 \
|
51 |
+
--max_train_steps=steps , shell=True) #30000
|
52 |
return
|
53 |
|
54 |
with gr.Blocks() as demo:
|