Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized the training startup process(【待解决问题5】优化混元DiT模型启动配置流程) #156

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

LeiWu7999
Copy link

优化了模型训练的启动配置流程,现在可以在 " ./hydit/config/ " 目录下选择对应文件进行参数设置,如下图:
image
支持全参数训练、controlnet训练、lora训练。
具体流程为先在对应配置文件中设置训练参数,然后在项目根目录下使用命令

# Full Parameters Training
PYTHONPATH=./ sh hydit/train.sh --training-type full

# Controlnet Training
PYTHONPATH=./ sh hydit/train.sh --training-type controlnet

# LoRA Training
PYTHONPATH=./ sh hydit/train.sh --training-type lora

同时也可以支持传入命令行参数,例如:

PYTHONPATH=./ sh hydit/train.sh --training-type lora --index-file dataset/porcelain/jsons/porcelain_mt.json

@tencent-adm
Copy link
Member

tencent-adm commented Jul 11, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants