15 downloads
1 likes
on ModelScope
updated
Model card
图片放到 img/ 目录下,LoRA模型放到 lora/ 目录下,命名一一对应
训练
python img_gen_lora/main.py --type=train
推理
python img_gen_lora/main.py --type=eval --img_path=img_gen_lora/img/049.png --out_path=img_gen_lora/lora/new.bin
参数解释
type: train|eval 训练或推理
img_path: 需要转为LoRA模型的图片
out_path: 输出的LoRA模型位置