mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
fix warning messages are shown every step
This commit is contained in:
@@ -8,6 +8,7 @@ class SdxlNetworkTrainer(train_network.NetworkTrainer):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.vae_scale_factor = sdxl_model_util.VAE_SCALE_FACTOR
|
self.vae_scale_factor = sdxl_model_util.VAE_SCALE_FACTOR
|
||||||
|
self.sampling_warning_showed = False
|
||||||
|
|
||||||
def assert_extra_args(self, args, train_dataset_group):
|
def assert_extra_args(self, args, train_dataset_group):
|
||||||
super().assert_extra_args(args)
|
super().assert_extra_args(args)
|
||||||
@@ -153,7 +154,9 @@ class SdxlNetworkTrainer(train_network.NetworkTrainer):
|
|||||||
return noise_pred
|
return noise_pred
|
||||||
|
|
||||||
def sample_images(self, accelerator, args, epoch, global_step, device, vae, tokenizer, text_encoder, unet):
|
def sample_images(self, accelerator, args, epoch, global_step, device, vae, tokenizer, text_encoder, unet):
|
||||||
print("sample_images is not implemented")
|
if not self.sampling_warning_showed:
|
||||||
|
print("sample_images is not implemented")
|
||||||
|
self.sampling_warning_showed = True
|
||||||
|
|
||||||
|
|
||||||
def setup_parser() -> argparse.ArgumentParser:
|
def setup_parser() -> argparse.ArgumentParser:
|
||||||
|
|||||||
Reference in New Issue
Block a user