---
title: img_2_LoRA
canonical_url: "https://www.modelscope.cn/models/maxmon/img_2_LoRA"
md_url: "https://www.modelscope.cn/models/maxmon/img_2_LoRA.md"
repository: maxmon/img_2_LoRA
chinese_name: "图片直接推理LoRA模型参数"
last_updated: 2024-04-10
pipeline_tag: efficient-diffusion-tuning
tasks:
  - efficient-diffusion-tuning
library_name:
  - pytorch
frameworks:
  - Pytorch
downloads: 15
stars: 1
---

# img_2_LoRA

> img_2_LoRA - maxmon 在 ModelScope 开源的模型。此模型在宫崎骏风、古风、古希腊、光剑、黑白、简笔画、胶片、欧美、日式、时尚模特、水墨、小清新、油画等风格上训练，同时在宫崎骏风、油画风上过拟合，目前上传此两类相关图片可直接获取到对应的LoRA模型

- **Repository**: maxmon/img_2_LoRA
- **Tasks**: efficient-diffusion-tuning
- **Downloads**: 15
- **Stars**: 1
- **Last updated**: 2024-04-10

Source: https://www.modelscope.cn/models/maxmon/img_2_LoRA

---

图片放到 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模型位置
