TheLastBen
commited on
Commit
•
ab232bf
1
Parent(s):
37bd07b
Update Scripts/mainpaperspacev2.py
Browse files
Scripts/mainpaperspacev2.py
CHANGED
@@ -626,7 +626,7 @@ def dbtrainv2(Resume_Training, UNet_Training_Steps, UNet_Learning_Rate, Text_Enc
|
|
626 |
--lr_warmup_steps=0 \
|
627 |
--max_train_steps='+str(Training_Steps), shell=True)
|
628 |
|
629 |
-
def train_only_unet(stp, stpsv, SESSION_DIR, MODELT_NAME, INSTANCE_DIR, OUTPUT_DIR, Text_Encoder_Training_Steps, PT, Seed, Resolution,
|
630 |
clear_output()
|
631 |
if resuming=="Yes":
|
632 |
print('[1;32mResuming Training...[0m')
|
@@ -685,7 +685,7 @@ def dbtrainv2(Resume_Training, UNet_Training_Steps, UNet_Learning_Rate, Text_Enc
|
|
685 |
time.sleep(8)
|
686 |
|
687 |
if UNet_Training_Steps!=0:
|
688 |
-
train_only_unet(stp, stpsv, SESSION_DIR, MODELT_NAME, INSTANCE_DIR, OUTPUT_DIR, Text_Encoder_Training_Steps, PT, Seed, Resolution,
|
689 |
|
690 |
if UNet_Training_Steps==0 and Text_Encoder_Concept_Training_Steps==0 and Text_Encoder_Training_Steps==0 :
|
691 |
print('[1;32mNothing to do')
|
|
|
626 |
--lr_warmup_steps=0 \
|
627 |
--max_train_steps='+str(Training_Steps), shell=True)
|
628 |
|
629 |
+
def train_only_unet(stp, stpsv, SESSION_DIR, MODELT_NAME, INSTANCE_DIR, OUTPUT_DIR, Text_Encoder_Training_Steps, PT, Seed, Resolution, extrnlcptn, precision, Training_Steps):
|
630 |
clear_output()
|
631 |
if resuming=="Yes":
|
632 |
print('[1;32mResuming Training...[0m')
|
|
|
685 |
time.sleep(8)
|
686 |
|
687 |
if UNet_Training_Steps!=0:
|
688 |
+
train_only_unet(stp, stpsv, SESSION_DIR, MODELT_NAME, INSTANCE_DIR, OUTPUT_DIR, Text_Encoder_Training_Steps, PT, Seed, Resolution, extrnlcptn, precision, Training_Steps=UNet_Training_Steps)
|
689 |
|
690 |
if UNet_Training_Steps==0 and Text_Encoder_Concept_Training_Steps==0 and Text_Encoder_Training_Steps==0 :
|
691 |
print('[1;32mNothing to do')
|