You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"\033[1;31mError:\033[0m The required module 'lycoris_lora' is not installed. Please install by running \033[33mupgrade.ps1\033[0m before running this program."
562
620
)
563
621
return
@@ -567,7 +625,7 @@ def train_model(
567
625
try:
568
626
importlycoris
569
627
exceptModuleNotFoundError:
570
-
print(
628
+
log.info(
571
629
"\033[1;31mError:\033[0m The required module 'lycoris_lora' is not installed. Please install by running \033[33mupgrade.ps1\033[0m before running this program."
572
630
)
573
631
return
@@ -738,12 +796,12 @@ def train_model(
738
796
# run_cmd += f' --conv_alphas="{conv_alphas}"'
739
797
740
798
ifprint_only_bool:
741
-
print(
799
+
log.info(
742
800
'\033[93m\nHere is the trainer command as a reference. It will not be executed:\033[0m\n'
743
801
)
744
-
print('\033[96m'+run_cmd+'\033[0m\n')
802
+
log.info('\033[96m'+run_cmd+'\033[0m\n')
745
803
else:
746
-
print(run_cmd)
804
+
log.info(run_cmd)
747
805
# Run the command
748
806
ifos.name=='posix':
749
807
os.system(run_cmd)
@@ -973,7 +1031,7 @@ def lora_tab(
973
1031
# Show of hide LoCon conv settings depending on LoRA type selection
974
1032
defupdate_LoRA_settings(LoRA_type):
975
1033
# Print a message when LoRA type is changed
976
-
print('LoRA type changed...')
1034
+
log.info('LoRA type changed...')
977
1035
978
1036
# Determine if LoCon_row should be visible based on LoRA_type
print(f"\nRun \033[33m{upgrade_script}\033[0m or \033[33mpip install -U -r {args.requirements}\033[0m to resolve the missing requirements listed above...")
116
+
log.info(f"\nRun \033[33m{upgrade_script}\033[0m or \033[33mpip install -U -r {args.requirements}\033[0m to resolve the missing requirements listed above...")
0 commit comments