图片放到 img/ 目录下,LoRA模型放到 lora/ 目录下,命名一一对应
训练 python imggenlora/main.py --type=train
推理 python imggenlora/main.py --type=eval --imgpath=imggenlora/img/049.png --outpath=imggenlora/lora/new.bin
参数解释 type: train|eval 训练或推理 imgpath: 需要转为LoRA模型的图片 outpath: 输出的LoRA模型位置
评论