Spaces:
Runtime error
Runtime error
Commit
•
6a75a80
1
Parent(s):
b113e87
Update app.py
Browse files
app.py
CHANGED
@@ -189,7 +189,7 @@ def train(*inputs):
|
|
189 |
if(type_of_thing == "person" and Training_Steps > 2600):
|
190 |
Training_Steps = 2600 #Avoid overfitting on people's faces
|
191 |
stptxt = int((Training_Steps*Train_text_encoder_for)/100)
|
192 |
-
gradient_checkpointing = True
|
193 |
cache_latents = True if which_model != "v1-5" else False
|
194 |
if (type_of_thing == "object" or type_of_thing == "style" or (type_of_thing == "person" and not experimental_face_improvement)):
|
195 |
args_general = argparse.Namespace(
|
|
|
189 |
if(type_of_thing == "person" and Training_Steps > 2600):
|
190 |
Training_Steps = 2600 #Avoid overfitting on people's faces
|
191 |
stptxt = int((Training_Steps*Train_text_encoder_for)/100)
|
192 |
+
gradient_checkpointing = True if (experimental_face_improvement or which_model != "v1-5") else False
|
193 |
cache_latents = True if which_model != "v1-5" else False
|
194 |
if (type_of_thing == "object" or type_of_thing == "style" or (type_of_thing == "person" and not experimental_face_improvement)):
|
195 |
args_general = argparse.Namespace(
|