mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Allow for a default caption file in the folder. Minor bug fixes.
This commit is contained in:
@@ -63,7 +63,7 @@ class SDTrainer(BaseSDTrainProcess):
|
||||
self.is_bfloat = self.train_config.dtype == "bfloat16" or self.train_config.dtype == "bf16"
|
||||
|
||||
self.do_grad_scale = True
|
||||
if self.is_fine_tuning:
|
||||
if self.is_fine_tuning and self.is_bfloat:
|
||||
self.do_grad_scale = False
|
||||
if self.adapter_config is not None:
|
||||
if self.adapter_config.train:
|
||||
|
||||
Reference in New Issue
Block a user