SD3-Controlnet-Canny

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

技术信息

官网地址
https://github.com/InstantID/InstantID
开源地址
https://modelscope.cn/models/InstantX/SD3-Controlnet-Canny

作品详情

SD3 Cotrolet

cotrol image weight=0.0 weight=0.3 weight=0.5 weight=0.7 weight=0.9

Please esure that the versio of diffusers >= 0.30.0.dev0.

Demo

import torch
from diffusers import StableDiffusio3CotrolNetPipelie
from diffusers.models import SD3CotrolNetModel, SD3MultiCotrolNetModel
from diffusers.utils import load_image

# load pipelie
cotrolet = SD3CotrolNetModel.from_pretraied("IstatX/SD3-Cotrolet-Cay")
pipe = StableDiffusio3CotrolNetPipelie.from_pretraied(
    "stabilityai/stable-diffusio-3-medium-diffusers",
    cotrolet=cotrolet
)
pipe.to("cuda", torch.float16)

# cofig
cotrol_image = load_image("https://huggigface.co/IstatX/SD3-Cotrolet-Cay/resolve/mai/cay.jpg")
prompt = 'Aime style illustratio of a girl wearig a suit. A moo i sky. I the backgroud we see a big rai approachig. text "IstatX" o image'
_prompt = 'NSFW, ude, aked, por, ugly'
image = pipe(
    prompt, 
    egative_prompt=_prompt, 
    cotrol_image=cotrol_image, 
    cotrolet_coditioig_scale=0.5,
).images[0]
image.save('image.jpg')

Limitatio

Due to the fact that oly 1024*1024 pixel resolutio was used durig the traiig phase, the iferece performs best at this size, with other sizes yieldig suboptimal results. We will iitiate multi-resolutio traiig i the future, ad at that time, we will ope-source the ew weights.

功能介绍

SD3 Controlnet control image weight=0.0 weight=0.3 weight=0.5 weight=0.7 weight=0.9

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

评论