mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 03:01:28 +00:00
Added a converter back to ldm from diffusers for sdxl. Can finally get to training it properly
This commit is contained in:
@@ -248,7 +248,7 @@ class UltimateSliderTrainerProcess(BaseSDTrainProcess):
|
||||
if weight_jitter > 0.0:
|
||||
jitter_list = random.uniform(-weight_jitter, weight_jitter)
|
||||
network_pos_weight += jitter_list
|
||||
network_neg_weight += jitter_list
|
||||
network_neg_weight += (jitter_list * -1.0)
|
||||
|
||||
# if items in network_weight list are tensors, convert them to floats
|
||||
imgs: torch.Tensor = imgs.to(self.device_torch, dtype=dtype)
|
||||
|
||||
Reference in New Issue
Block a user