Spaces:
Runtime error
Runtime error
Fix error in generate
Browse files
app.py
CHANGED
@@ -45,11 +45,11 @@ def train_model(*inputs):
|
|
45 |
args_general = argparse.Namespace(
|
46 |
image_captions_filename = True,
|
47 |
train_text_encoder = True,
|
48 |
-
stop_text_encoder_training = stptxt,
|
49 |
save_n_steps = 0,
|
50 |
pretrained_model_name_or_path = model_to_load,
|
51 |
instance_data_dir="instance_images",
|
52 |
-
class_data_dir=class_data_dir,
|
53 |
output_dir="output_model",
|
54 |
instance_prompt="",
|
55 |
seed=42,
|
@@ -61,7 +61,7 @@ def train_model(*inputs):
|
|
61 |
learning_rate=2e-6,
|
62 |
lr_scheduler="polynomial",
|
63 |
lr_warmup_steps = 0,
|
64 |
-
max_train_steps=Training_Steps,
|
65 |
)
|
66 |
run_training(args_general)
|
67 |
torch.cuda.empty_cache()
|
|
|
45 |
args_general = argparse.Namespace(
|
46 |
image_captions_filename = True,
|
47 |
train_text_encoder = True,
|
48 |
+
#stop_text_encoder_training = stptxt,
|
49 |
save_n_steps = 0,
|
50 |
pretrained_model_name_or_path = model_to_load,
|
51 |
instance_data_dir="instance_images",
|
52 |
+
#class_data_dir=class_data_dir,
|
53 |
output_dir="output_model",
|
54 |
instance_prompt="",
|
55 |
seed=42,
|
|
|
61 |
learning_rate=2e-6,
|
62 |
lr_scheduler="polynomial",
|
63 |
lr_warmup_steps = 0,
|
64 |
+
#max_train_steps=Training_Steps,
|
65 |
)
|
66 |
run_training(args_general)
|
67 |
torch.cuda.empty_cache()
|