refiners/scripts/training/finetune-ldm.py

12 lines
349 B
Python
Raw Normal View History

2023-08-04 13:28:41 +00:00
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()