Akegarasu / lora-scripts

LoRA & Dreambooth training scripts & GUI use kohya-ss's trainer, for diffusion model.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

分享一个AutoDL解决达标卡在loading的方法,无需huggingface手动下载

LifeCheckpoint opened this issue · comments

利用平台提供学术加速即可,在gui.py中import语句后加入

result = subprocess.run('bash -c "source /etc/network_turbo && env | grep proxy"', shell=True, capture_output=True, text=True)
output = result.stdout
for line in output.splitlines():
    if '=' in line:
        var, value = line.split('=', 1)
        os.environ[var] = value

即可