refiners/scripts/training/finetune-ldm.py
Cédric Deltheil 48f674c433 initial commit
2023-08-04 15:28:41 +02:00

12 lines
349 B
Python

from refiners.training_utils.latent_diffusion import FinetuneLatentDiffusionConfig, LatentDiffusionTrainer
if __name__ == "__main__":
import sys
config_path = sys.argv[1]
config = FinetuneLatentDiffusionConfig.load_from_toml(
toml_path=config_path,
)
trainer = LatentDiffusionTrainer(config=config)
trainer.train()