草,刚想到能不能对接,就有大佬做出来了吗
LookStars 发布的帖子
-
RE: 本地搭建NovelAi (免费的色图生成器,可用colab在线运行)
@LookStars 在 本地搭建NovelAi (免费的色图生成器,可用colab在线运行) 中说:
@Colter23 在 本地搭建NovelAi (免费的色图生成器,可用colab在线运行) 中说:
@LookStars 在
webui-user.bat
中的COMMANDLINE_ARGS=
后面里加这个参数试试--share
这个好诶,是直接给一个可以让你使用72小时的广域网网址,但是..我想要的是那种可以让我局域网内访问 而不是公网..的操作
我去询问了官方,
官方给出的回答是如果你需要在网络中供其他电脑连接,需要的参数是侦听,--listen
我:侦听好像可以使0.0.0.0的地址运作在本机上? -
RE: 本地搭建NovelAi (免费的色图生成器,可用colab在线运行)
@Colter23 在 本地搭建NovelAi (免费的色图生成器,可用colab在线运行) 中说:
@LookStars 在
webui-user.bat
中的COMMANDLINE_ARGS=
后面里加这个参数试试--share
这个好诶,是直接给一个可以让你使用72小时的广域网网址,但是..我想要的是那种可以让我局域网内访问 而不是公网..的操作
-
RE: 本地搭建NovelAi (免费的色图生成器,可用colab在线运行)
解决了 并不是py文件问题,而是在所有依赖都加载完之后下载最后下载webUI的问题,webUI下载到一半报error,然后之后运行都会认为下载了webUI,然后直接执行会报错,因此直接到缓存去删除文件重新下载即可
附上目录
C:\Users(你的用户名).cache\huggingface\transformers -
RE: 本地搭建NovelAi (免费的色图生成器,可用colab在线运行)
@Colter23
venv "C:\Users\zlr75\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: d5c14365fd468dbf89fa12a68bea5b217077273c
Installing requirements for Web UI
Launching Web UI with arguments: --disable-safe-unpickle
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Traceback (most recent call last):
File "C:\Users\zlr75\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 392, in load_state_dict
return torch.load(checkpoint_file, map_location="cpu")
File "C:\Users\zlr75\stable-diffusion-webui\modules\safe.py", line 89, in load
return unsafe_torch_load(filename, *args, **kwargs)
File "C:\Users\zlr75\stable-diffusion-webui\venv\lib\site-packages\torch\serialization.py", line 705, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "C:\Users\zlr75\stable-diffusion-webui\venv\lib\site-packages\torch\serialization.py", line 242, in init
super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directoryDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\zlr75\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 396, in load_state_dict
if f.read().startswith("version"):
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 64: illegal multibyte sequenceDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\zlr75\stable-diffusion-webui\launch.py", line 165, in <module>
start_webui()
File "C:\Users\zlr75\stable-diffusion-webui\launch.py", line 159, in start_webui
import webui
File "C:\Users\zlr75\stable-diffusion-webui\webui.py", line 82, in <module>
shared.sd_model = modules.sd_models.load_model()
File "C:\Users\zlr75\stable-diffusion-webui\modules\sd_models.py", line 177, in load_model
sd_model = instantiate_from_config(sd_config.model)
File "C:\Users\zlr75\stable-diffusion-webui\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "C:\Users\zlr75\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 461, in init
self.instantiate_cond_stage(cond_stage_config)
File "C:\Users\zlr75\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 519, in instantiate_cond_stage
model = instantiate_from_config(config)
File "C:\Users\zlr75\stable-diffusion-webui\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "C:\Users\zlr75\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\encoders\modules.py", line 142, in init
self.transformer = CLIPTextModel.from_pretrained(version)
File "C:\Users\zlr75\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 1978, in from_pretrained
state_dict = load_state_dict(resolved_archive_file)
File "C:\Users\zlr75\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 408, in load_state_dict
raise OSError(
OSError: Unable to load weights from pytorch checkpoint file for 'C:\Users\zlr75/.cache\huggingface\transformers\c506559a5367a918bab46c39c79af91ab88846b49c8abd9d09e699ae067505c6.6365d436cc844f2f2b4885629b559d8ff0938ac484c01a6796538b2665de96c7' at 'C:\Users\zlr75/.cache\huggingface\transformers\c506559a5367a918bab46c39c79af91ab88846b49c8abd9d09e699ae067505c6.6365d436cc844f2f2b4885629b559d8ff0938ac484c01a6796538b2665de96c7'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.
请按任意键继续. . .
参考了您的解决方案报的错
git pull重新尝试 报错
加入参数 重试报错
这里是加入参数后报的错 -
RE: 本地搭建NovelAi (免费的色图生成器,可用colab在线运行)
已经尝试过删除webui重新git clone,然后重新根据教程来进行,故障依旧
显卡是笔记本的1050Ti,已经装上了cuda,无法解决此问题 再此求助 -
RE: 本地搭建NovelAi (免费的色图生成器,可用colab在线运行)
@LookStars 在 本地搭建NovelAi (免费的色图生成器,可用colab在线运行) 中说:
...希望能得到回复我看不懂 我也不理解 但是我只能理解我运行的程序的某些行落报错了venv "G:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: d5c14365fd468dbf89fa12a68bea5b217077273c
Installing requirements for Web UI
Launching Web UI with arguments:
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Error verifying pickled file from C:\Users\zlr75/.cache\huggingface\transformers\c506559a5367a918bab46c39c79af91ab88846b49c8abd9d09e699ae067505c6.6365d436cc844f2f2b4885629b559d8ff0938ac484c01a6796538b2665de96c7:
Traceback (most recent call last):
File "G:\stable-diffusion-webui\modules\safe.py", line 61, in check_pt
with zipfile.ZipFile(filename) as z:
File "C:\Users\zlr75\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in init
self._RealGetContents()
File "C:\Users\zlr75\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1334, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip fileDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "G:\stable-diffusion-webui\modules\safe.py", line 80, in load
check_pt(filename)
File "G:\stable-diffusion-webui\modules\safe.py", line 72, in check_pt
unpickler.load()
_pickle.UnpicklingError: persistent IDs in protocol 0 must be ASCII stringsThe file may be malicious, so the program is not going to read it.
You can skip this check with --disable-safe-unpickle commandline argument.
Traceback (most recent call last):
File "G:\stable-diffusion-webui\launch.py", line 165, in <module>
start_webui()
File "G:\stable-diffusion-webui\launch.py", line 159, in start_webui
import webui
File "G:\stable-diffusion-webui\webui.py", line 82, in <module>
shared.sd_model = modules.sd_models.load_model()
File "G:\stable-diffusion-webui\modules\sd_models.py", line 177, in load_model
sd_model = instantiate_from_config(sd_config.model)
File "G:\stable-diffusion-webui\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "G:\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 461, in init
self.instantiate_cond_stage(cond_stage_config)
File "G:\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 519, in instantiate_cond_stage
model = instantiate_from_config(config)
File "G:\stable-diffusion-webui\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
File "G:\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\encoders\modules.py", line 142, in init
self.transformer = CLIPTextModel.from_pretrained(version)
File "G:\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 2006, in from_pretrained
loaded_state_dict_keys = [k for k in state_dict.keys()]
AttributeError: 'NoneType' object has no attribute 'keys'
请按任意键继续. . .