A lot of pixart sigma training tweaks

This commit is contained in:
Jaret Burkett
2024-07-28 11:23:18 -06:00
parent 80aa2dbb80
commit 0bc4d555c7
8 changed files with 118 additions and 29 deletions

View File

@@ -516,6 +516,9 @@ class ToolkitNetworkMixin:
load_sd = OrderedDict()
for key, value in weights_sd.items():
load_key = keymap[key] if key in keymap else key
# replace old double __ with single _
if self.is_pixart:
load_key = load_key.replace('__', '_')
load_sd[load_key] = value
# extract extra items from state dict