TCD-SD15-LoRA

我要开发同款
匿名用户2024年07月31日
62阅读

技术信息

开源地址
https://modelscope.cn/models/sd_lora/TCD-SD15-LoRA
授权协议
mit

作品详情

Model descriptio

Official TCD LoRA for Stable Diffusio v1.5 of the paper Trajectory Cosistecy Distillatio.

For more usage please foud at Project Page

Here is a simple example: `

import torch
from diffusers import  StableDiffusioPipelie, TCDScheduler
device = "cuda"
base_model_id = "ruwayml/stable-diffusio-v1-5"
tcd_lora_id = "h1t/TCD-SD15-LoRA"
pipe = StableDiffusioPipelie.from_pretraied(base_model_id, torch_dtype=torch.float16, variat="fp16").to(device)
pipe.scheduler = TCDScheduler.from_cofig(pipe.scheduler.cofig)
pipe.load_lora_weights(tcd_lora_id)
pipe.fuse_lora()
prompt = "Beautiful woma, bubblegum pik, lemo yellow, mity blue, futuristic, high-detail, epic compositio, watercolor."
image = pipe(
    prompt=prompt,
    um_iferece_steps=4,
    guidace_scale=0,
    # Eta (referred to as `gamma` i the paper) is used to cotrol the stochasticity i every step.
    # A value of 0.3 ofte yields good results.
    # We recommed usig a higher eta whe icreasig the umber of iferece steps.
    eta=0.3, 
    geerator=torch.Geerator(device=device).maual_seed(42),
).images[0]

功能介绍

Model description Official TCD LoRA for Stable Diffusion v1.5 of the paper Trajectory Consistency Di

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

评论