SDXL should be working, but I broke something where it is not converging.
This commit is contained in:
1 parent
52f02d53f1
commit
cb70c03273
11 files changed
+458
-166
No files matched your search
+10
-1
@@ -1,3 +1,4 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
from jobs import BaseJob
|
||||
@@ -6,7 +7,7 @@ from collections import OrderedDict
|
||||
from typing import List
|
||||
from jobs.process import BaseExtractProcess, TrainFineTuneProcess
|
||||
from datetime import datetime
|
||||
|
||||
import yaml
|
||||
from toolkit.paths import REPOS_ROOT
|
||||
|
||||
import sys
|
||||
@@ -16,6 +17,7 @@ sys.path.append(REPOS_ROOT)
|
||||
process_dict = {
|
||||
'vae': 'TrainVAEProcess',
|
||||
'slider': 'TrainSliderProcess',
|
||||
'lora_hack': 'TrainLoRAHack',
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +39,13 @@ class TrainJob(BaseJob):
|
||||
# loads the processes from the config
|
||||
self.load_processes(process_dict)
|
||||
|
||||
def save_training_config(self):
|
||||
timestamp = datetime.now().strftime('%Y%m%d-%H%M%S')
|
||||
os.makedirs(self.training_folder, exist_ok=True)
|
||||
save_dif = os.path.join(self.training_folder, f'run_config_{timestamp}.yaml')
|
||||
with open(save_dif, 'w') as f:
|
||||
yaml.dump(self.raw_config, f)
|
||||
|
||||
def run(self):
|
||||
super().run()
|
||||
print("")
|
||||
|
||||
Reference in new issue
Block a user