Giter VIP home page Giter VIP logo

stable-diffusion-webui-taiyi-scripts's Introduction

stable-diffusion-webui-taiyi-scripts

稍微修改和增加一些文件,让stable-diffusion-webui能够加载太乙模型和太乙-动漫模型

为了能在webui上跑起来我们的代码,我们需要稍微增加一点文件,在stable-diffusion-webui上增加对太乙模型的支持。

1、增加太乙inference的config

在./stable-diffusion-webui/configs/的目录增加一个文件taiyi-stable-diffusion-inference-v1.yaml

2、增加太乙模型结构的module

由于太乙模型修改了stable diffusion的text encoder结构,所以首先在./stable-diffusion-webui/modules/的目录增加sd_hijack_taiyi.py和taiyi.py

然后,修改这个目录下的sd_hijack.py,使其能够正确加载TaiyiCLIPEmbedder;

再修改sd_models_config.py和sd_models.py,使其能够正确加载太乙模型。

3、启动太乙吧

sh run.sh

stable-diffusion-webui-taiyi-scripts's People

Contributors

wxj630 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kekewind

stable-diffusion-webui-taiyi-scripts's Issues

具体要修改什么?

“然后,修改这个目录下的sd_hijack.py,使其能够正确加载TaiyiCLIPEmbedder;

再修改sd_models_config.py和sd_models.py,使其能够正确加载太乙模型。”

安装楼主的方法,报一下错误,能帮忙指导下么,感谢

Exception in thread Thread-2 (load_model):
Traceback (most recent call last):
File "/root/miniconda3/envs/sdwebui/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/root/miniconda3/envs/sdwebui/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/lirong/taiyi1/stable-diffusion-webui/webui.py", line 302, in load_model
shared.sd_model # noqa: B018
AttributeError: module 'modules.shared' has no attribute 'sd_model'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.