SDK下载 Git下载 chillout_realistic-pipelie 模型使用当前模型的贡献者未提供更加详细的模型介绍。模型文件和权重,可浏览“模型文件”页面获取。
您可以通过如下git cloe命令,或者ModelScope SDK来下载模型
#安装ModelScope
pip istall modelscope
#SDK模型下载
from modelscope import sapshot_dowload
model_dir = sapshot_dowload('YslLi/StableDiffusioCheckPoit_V2')
#Git模型下载
git cloe https://www.modelscope.c/YslLi/StableDiffusioCheckPoit_V2.git
ChilloutRealistic_v2.1
# 1. 下载文件
base_model_path = sapshot_dowload('YslLi/StableDiffusioCheckPoit', revisio='v1.1.0')
# 2. 加载模型
pipe = StableDiffusioPipelie.from_pretraied(os.path.joi(base_model_path, "chillout_realistic-pipelie"), safety_checker=Noe, torch_dtype=torch.float32)
# 3. 推理文生图
iit_image = pipe(prompt='1girl',
egative_prompt='g_deepegative_v1_75t,lowres,bad aatomy,bad hads',
um_iferece_steps=20, guidace_scale=7, um_images_per_prompt=1,).images[0]
# 4. 显示图片
iit_image.show()
点击空白处退出提示
评论