wyw20240710/20240705fugu_v2

我要开发同款
匿名用户2024年07月31日
36阅读
所属分类aiPytorch
开源地址https://modelscope.cn/models/wyw20240710/20240705fugu_v2
授权协议apache-2.0

作品详情

20240705fugu_v2



模型介绍

20240705fugu_v2

模型参数

基础模型 微调类型 训练参数
批次大小 轮数 学习率 分辨率
SD2.1 LORA 2 50 0.0001 [768, 768]
数据类型 数据空间 数据名称 数据子集
文生图数据 fugu-version-20240705 default

模型效果

输入 "a boy wearing a jacket",可能会得到如下图像:

image

模型使用

命令行运行

  • 使用scepter的sdk进行运行,注意需要按照模型参数中基模型的不同使用不同的配置文件,其对应关系如下
Base Model LORA SCE TEXT_LORA TEXT_SCE
SD1.5 lora_cfg sce_cfg text_lora_cfg text_sce_cfg
SD2.1 lora_cfg sce_cfg text_lora_cfg text_sce_cfg
SDXL lora_cfg sce_cfg text_lora_cfg text_sce_cfg
  • 从源码运行
git clone https://github.com/modelscope/scepter.git
cd scepter
pip install -r requirements/recommended.txt
PYTHONPATH=. python scepter/tools/run_inference.py
  --pretrained_model {this model folder}
  --cfg {lora_cfg} or {sce_cfg} or {text_lora_cfg} or {text_sce_cfg}
  --prompt 'a boy wearing a jacket'
  --save_folder 'inference'
  • 安装scepter后运行(推荐)
pip install scepter
python -m scepter/tools/run_inference.py
  --pretrained_model {this model folder}
  --cfg {lora_cfg} or {sce_cfg} or {text_lora_cfg} or {text_sce_cfg}
  --prompt 'a boy wearing a jacket'
  --save_folder 'inference'

使用Scepter Studio运行

pip install scepter
启动scepter studio
python -m scepter.tools.webui
  • 参考以下指南使用模型

模型引用

如果你想使用该模型应用于自己的场景,请按照如下方式引用该模型。

@misc{20240705fugu_v2,
    title = {20240705fugu_v2, https://www.modelscope.cn/models//20240705fugu_v2},
    author = {},
    year = {2024}
}

该模型是基于Scepter Studio训练得到;scepter 是由阿里巴巴通义万相团队开发的算法框架和工具箱,提供图像生成、编辑、微调、数据处理等一系列工具和模型。如果您觉得我们的工作有益于您的工作, 请按照如下方式引用。

@misc{scepter,
    title = {SCEPTER, https://github.com/modelscope/scepter},
    author = {SCEPTER},
    year = {2023}
}
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论