MCPcopy Index your code
hub / github.com/modelscope/DiffSynth-Studio / train_sd_lora.py

File train_sd_lora.py

examples/train/stable_diffusion/train_sd_lora.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from diffsynth import ModelManager, SDImagePipeline
2from diffsynth.trainers.text_to_image import LightningModelForT2ILoRA, add_general_parsers, launch_training_task
3import torch, os, argparse
4os.environ["TOKENIZERS_PARALLELISM"] = "True"

Callers

nothing calls this directly

Calls 3

launch_training_taskFunction · 0.90
parse_argsFunction · 0.70
LightningModelClass · 0.70

Tested by

no test coverage detected