jiangzeyinzi/Swift-stable_diffusion-SD1.5-TEXT_LOR

我要开发同款
匿名用户2024年07月31日
23阅读
所属分类aiPytorch
开源地址https://modelscope.cn/models/jiangzeyinzi/Swift-stable_diffusion-SD1.5-TEXT_LORA-20240521140003247364745-step-last
授权协议apache-2.0

作品详情

Swift-stable_diffusion-SD1.5-TEXT_LORA-20240521140003247364745-step-last



Model Introduction

Swift-stablediffusion-SD1.5-TEXTLORA-20240521140003247364745-step-last

Model Parameters

Base Model Tuner Type Training Parameters
Batch Size Epochs Learning Rate Resolution
SD1.5 TEXT_LORA 4 5 0.0001 [512, 512]
Data Type Data Space Data Name Data Subset
Dataset zip /mnt/codespace/yinzi/project/scepter/scepter_gitlab_dev/scepter/cache/scepter_ui/datasets/scepter_txt2img_3DNew-v1-20240521_12_01_38 default

Model Performance

Given the input "a boy wearing a jacket," the following image may be generated:

image

Model Usage

Command Line Execution

  • Run using Scepter's SDK, taking care to use different configuration files in accordance with the different base models, as per the corresponding relationships shown below
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
  • Running from Source Code
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'
  • Running after Installing Scepter (Recommended)
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'

Running with Scepter Studio

pip install scepter
# Launch Scepter Studio
python -m scepter.tools.webui
  • Refer to the following guides for model usage.

(video url)

Model Reference

If you wish to use this model for your own purposes, please cite it as follows.

@misc{Swift-stable_diffusion-SD1.5-TEXT_LORA-20240521140003247364745-step-last,
    title = {Swift-stable_diffusion-SD1.5-TEXT_LORA-20240521140003247364745-step-last, https://www.modelscope.cn/models/jiangzeyinzi/Swift-stable_diffusion-SD1.5-TEXT_LORA-20240521140003247364745-step-last},
    author = {jiangzeyinzi},
    year = {2024}
}

This model was trained using Scepter Studio; Scepter is an algorithm framework and toolbox developed by the Alibaba Tongyi Wanxiang Team. It provides a suite of tools and models for image generation, editing, fine-tuning, data processing, and more. If you find our work beneficial for your research, please cite as follows.

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

评论