Commit
•
084e0c6
1
Parent(s):
6a75a80
Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,9 @@ def swap_text(option, base):
|
|
50 |
elif(option == "person"):
|
51 |
instance_prompt_example = "julcto"
|
52 |
freeze_for = 70
|
53 |
-
show_prior_preservation = True if base != "v2-768" else False
|
54 |
-
|
|
|
55 |
prior_preservation_box_update = gr.update(visible=show_prior_preservation)
|
56 |
else:
|
57 |
prior_preservation_box_update = gr.update(visible=show_prior_preservation, value=False)
|
@@ -183,7 +184,7 @@ def train(*inputs):
|
|
183 |
Train_text_encoder_for=15
|
184 |
|
185 |
elif(type_of_thing == "person"):
|
186 |
-
Train_text_encoder_for=
|
187 |
|
188 |
Training_Steps = file_counter*150
|
189 |
if(type_of_thing == "person" and Training_Steps > 2600):
|
|
|
50 |
elif(option == "person"):
|
51 |
instance_prompt_example = "julcto"
|
52 |
freeze_for = 70
|
53 |
+
#show_prior_preservation = True if base != "v2-768" else False
|
54 |
+
show_prior_preservation=False
|
55 |
+
if(show_prior_preservation):
|
56 |
prior_preservation_box_update = gr.update(visible=show_prior_preservation)
|
57 |
else:
|
58 |
prior_preservation_box_update = gr.update(visible=show_prior_preservation, value=False)
|
|
|
184 |
Train_text_encoder_for=15
|
185 |
|
186 |
elif(type_of_thing == "person"):
|
187 |
+
Train_text_encoder_for=70
|
188 |
|
189 |
Training_Steps = file_counter*150
|
190 |
if(type_of_thing == "person" and Training_Steps > 2600):
|