登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
仓库状态说明
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
60
Star
607
Fork
1.4K
Ascend
/
ModelZoo-PyTorch
暂停
代码
Issues
523
Pull Requests
200
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
sd-webui 文档中的包没提供,跑起来有问题(stable_diffusion 是能正常跑的)
DONE
#ICFGSN
缺陷
xmushroom
创建于
2025-06-16 15:14
一、问题现象(附报错日志上下文): stable_diffusion 是能正常跑的, sd-webui安装时参考 https://gitee.com/ascend/ModelZoo-PyTorch/blob/master/MindIE/MindIE-Torch/built-in/foundation/sd-webui/mindietorch_extension/README.md,官网没找到以下 mindietorch-xxx.whl的包  其他步骤按文档进行,运行报错。以下是启动到报错的log root@pc:/home/zero/Downloads/weights/stable-diffusion-webui# python3 launch.py --skip-torch-cuda-test --enable-insecure-extension-access --listen --log-startup --disable-safe-unpickle --no-half --skip-prepare-environment initial startup: done in 0.010s prepare environment: Launching Web UI with arguments: --skip-torch-cuda-test --enable-insecure-extension-access --listen --log-startup --disable-safe-unpickle --no-half --skip-prepare-environment launcher: done in 0.001s import torch: done in 1.426s import torch: done in 1.936s import gradio: done in 0.855s setup paths: done in 0.666s import ldm: done in 0.003s import sgm: done in 0.000s No module 'xformers'. Proceeding without it. Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled initialize shared: done in 0.803s other imports: done in 0.432s ============================================================================== You are running torch 2.1.0+cu121. The program is tested to work with torch 2.1.2. To reinstall the desired version, run with commandline flag --reinstall-torch. Beware that this will cause a lot of large files to be downloaded, as well as there are reports of issues with training tab on the latest version. Use --skip-version-check commandline argument to disable this check. ============================================================================== opts onchange: done in 0.000s setup SD model: done in 0.000s setup codeformer: done in 0.001s setup gfpgan: done in 0.006s set samplers: done in 0.000s list extensions: done in 0.001s restore config state file: done in 0.000s list SD models: done in 0.019s list localizations: done in 0.000s load scripts: custom_code.py: done in 0.001s img2imgalt.py: done in 0.000s loopback.py: done in 0.000s outpainting_mk_2.py: done in 0.000s poor_mans_outpainting.py: done in 0.000s postprocessing_codeformer.py: done in 0.000s postprocessing_gfpgan.py: done in 0.000s postprocessing_upscale.py: done in 0.000s prompt_matrix.py: done in 0.000s prompts_from_file.py: done in 0.000s sd_upscale.py: done in 0.000s xyz_grid.py: done in 0.002s ldsr_model.py: done in 0.246s lora_script.py: done in 4.583s scunet_model.py: done in 0.276s swinir_model.py: done in 0.081s hotkey_config.py: done in 0.000s extra_options_section.py: done in 0.000s hypertile_script.py: done in 0.162s postprocessing_autosized_crop.py: done in 0.000s postprocessing_caption.py: done in 0.000s postprocessing_create_flipped_copies.py: done in 0.000s postprocessing_focal_crop.py: done in 0.002s postprocessing_split_oversized.py: done in 0.000s soft_inpainting.py: done in 0.000s mindie_plugin.py: done in 0.437s comments.py: done in 0.111s refiner.py: done in 0.000s sampler.py: done in 0.000s seed.py: done in 0.000s load upscalers: done in 0.003s refresh VAE: done in 0.002s refresh textual inversion templates: done in 0.000s scripts list_optimizers: done in 0.001s scripts list_unets: done in 0.000s reload hypernetworks: done in 0.001s Loading weights [6ce0161689] from /home/zero/Downloads/weights/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors initialize extra networks: done in 0.013s scripts before_ui_callback: done in 0.004s 2024-11-27 11:21:46,154 INFO: import MindIEPlugin create ui: done in 0.661s Running on local URL: http://0.0.0.0:7860 To create a public link, set `share=True` in `launch()`. gradio launch: done in 0.176s add APIs: done in 0.010s app_started_callback: lora_script.py: done in 0.000s Startup time: 12.9s (import torch: 3.4s, import gradio: 0.9s, setup paths: 0.7s, initialize shared: 0.8s, other imports: 0.4s, load scripts: 5.9s, create ui: 0.7s, gradio launch: 0.2s). Creating model from config: /home/zero/Downloads/weights/stable-diffusion-webui/configs/v1-inference.yaml loading stable diffusion model: RuntimeError Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 973, in _bootstrap self._bootstrap_inner() File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/local/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/initialize.py", line 149, in load_model shared.sd_model # noqa: B018 File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/shared_items.py", line 175, in sd_model return modules.sd_models.model_data.get_sd_model() File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_models.py", line 693, in get_sd_model load_model() File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_models.py", line 845, in load_model load_model_weights(sd_model, checkpoint_info, state_dict, timer) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_models.py", line 440, in load_model_weights model.load_state_dict(state_dict, strict=False) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_disable_initialization.py", line 223, in <lambda> module_load_state_dict = self.replace(torch.nn.Module, 'load_state_dict', lambda *args, **kwargs: load_state_dict(module_load_state_dict, *args, **kwargs)) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_disable_initialization.py", line 221, in load_state_dict original(module, state_dict, strict=strict) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2138, in load_state_dict load(self, state_dict) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2126, in load load(child, child_state_dict, child_prefix) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2126, in load load(child, child_state_dict, child_prefix) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2126, in load load(child, child_state_dict, child_prefix) [Previous line repeated 1 more time] File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2120, in load module._load_from_state_dict( File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_disable_initialization.py", line 225, in <lambda> linear_load_from_state_dict = self.replace(torch.nn.Linear, '_load_from_state_dict', lambda *args, **kwargs: load_from_state_dict(linear_load_from_state_dict, *args, **kwargs)) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_disable_initialization.py", line 191, in load_from_state_dict module._parameters[name] = torch.nn.parameter.Parameter(torch.zeros_like(param, device=device, dtype=dtype), requires_grad=param.requires_grad) File "/usr/local/lib/python3.10/site-packages/torch/_meta_registrations.py", line 4507, in zeros_like res = aten.empty_like.default( File "/usr/local/lib/python3.10/site-packages/torch/_ops.py", line 448, in __call__ return self._op(*args, **kwargs or {}) File "/usr/local/lib/python3.10/site-packages/torch/_refs/__init__.py", line 4681, in empty_like return torch.empty_permuted( RuntimeError: unknown format type:77 Stable diffusion model failed to load Applying attention optimization: InvokeAI... done. Exception in thread Thread-3 (load_model): Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/local/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/initialize.py", line 154, in load_model devices.first_time_calculation() File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/devices.py", line 276, in first_time_calculation linear = torch.nn.Linear(1, 1).to(device, dtype) File "/usr/local/lib/python3.10/site-packages/torch_npu/utils/_module.py", line 78, in to return self._apply(convert) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 833, in _apply param_applied = fn(param) File "/usr/local/lib/python3.10/site-packages/torch_npu/utils/_module.py", line 76, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) RuntimeError: unknown format type:-1140785152
一、问题现象(附报错日志上下文): stable_diffusion 是能正常跑的, sd-webui安装时参考 https://gitee.com/ascend/ModelZoo-PyTorch/blob/master/MindIE/MindIE-Torch/built-in/foundation/sd-webui/mindietorch_extension/README.md,官网没找到以下 mindietorch-xxx.whl的包  其他步骤按文档进行,运行报错。以下是启动到报错的log root@pc:/home/zero/Downloads/weights/stable-diffusion-webui# python3 launch.py --skip-torch-cuda-test --enable-insecure-extension-access --listen --log-startup --disable-safe-unpickle --no-half --skip-prepare-environment initial startup: done in 0.010s prepare environment: Launching Web UI with arguments: --skip-torch-cuda-test --enable-insecure-extension-access --listen --log-startup --disable-safe-unpickle --no-half --skip-prepare-environment launcher: done in 0.001s import torch: done in 1.426s import torch: done in 1.936s import gradio: done in 0.855s setup paths: done in 0.666s import ldm: done in 0.003s import sgm: done in 0.000s No module 'xformers'. Proceeding without it. Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled initialize shared: done in 0.803s other imports: done in 0.432s ============================================================================== You are running torch 2.1.0+cu121. The program is tested to work with torch 2.1.2. To reinstall the desired version, run with commandline flag --reinstall-torch. Beware that this will cause a lot of large files to be downloaded, as well as there are reports of issues with training tab on the latest version. Use --skip-version-check commandline argument to disable this check. ============================================================================== opts onchange: done in 0.000s setup SD model: done in 0.000s setup codeformer: done in 0.001s setup gfpgan: done in 0.006s set samplers: done in 0.000s list extensions: done in 0.001s restore config state file: done in 0.000s list SD models: done in 0.019s list localizations: done in 0.000s load scripts: custom_code.py: done in 0.001s img2imgalt.py: done in 0.000s loopback.py: done in 0.000s outpainting_mk_2.py: done in 0.000s poor_mans_outpainting.py: done in 0.000s postprocessing_codeformer.py: done in 0.000s postprocessing_gfpgan.py: done in 0.000s postprocessing_upscale.py: done in 0.000s prompt_matrix.py: done in 0.000s prompts_from_file.py: done in 0.000s sd_upscale.py: done in 0.000s xyz_grid.py: done in 0.002s ldsr_model.py: done in 0.246s lora_script.py: done in 4.583s scunet_model.py: done in 0.276s swinir_model.py: done in 0.081s hotkey_config.py: done in 0.000s extra_options_section.py: done in 0.000s hypertile_script.py: done in 0.162s postprocessing_autosized_crop.py: done in 0.000s postprocessing_caption.py: done in 0.000s postprocessing_create_flipped_copies.py: done in 0.000s postprocessing_focal_crop.py: done in 0.002s postprocessing_split_oversized.py: done in 0.000s soft_inpainting.py: done in 0.000s mindie_plugin.py: done in 0.437s comments.py: done in 0.111s refiner.py: done in 0.000s sampler.py: done in 0.000s seed.py: done in 0.000s load upscalers: done in 0.003s refresh VAE: done in 0.002s refresh textual inversion templates: done in 0.000s scripts list_optimizers: done in 0.001s scripts list_unets: done in 0.000s reload hypernetworks: done in 0.001s Loading weights [6ce0161689] from /home/zero/Downloads/weights/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors initialize extra networks: done in 0.013s scripts before_ui_callback: done in 0.004s 2024-11-27 11:21:46,154 INFO: import MindIEPlugin create ui: done in 0.661s Running on local URL: http://0.0.0.0:7860 To create a public link, set `share=True` in `launch()`. gradio launch: done in 0.176s add APIs: done in 0.010s app_started_callback: lora_script.py: done in 0.000s Startup time: 12.9s (import torch: 3.4s, import gradio: 0.9s, setup paths: 0.7s, initialize shared: 0.8s, other imports: 0.4s, load scripts: 5.9s, create ui: 0.7s, gradio launch: 0.2s). Creating model from config: /home/zero/Downloads/weights/stable-diffusion-webui/configs/v1-inference.yaml loading stable diffusion model: RuntimeError Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 973, in _bootstrap self._bootstrap_inner() File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/local/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/initialize.py", line 149, in load_model shared.sd_model # noqa: B018 File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/shared_items.py", line 175, in sd_model return modules.sd_models.model_data.get_sd_model() File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_models.py", line 693, in get_sd_model load_model() File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_models.py", line 845, in load_model load_model_weights(sd_model, checkpoint_info, state_dict, timer) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_models.py", line 440, in load_model_weights model.load_state_dict(state_dict, strict=False) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_disable_initialization.py", line 223, in <lambda> module_load_state_dict = self.replace(torch.nn.Module, 'load_state_dict', lambda *args, **kwargs: load_state_dict(module_load_state_dict, *args, **kwargs)) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_disable_initialization.py", line 221, in load_state_dict original(module, state_dict, strict=strict) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2138, in load_state_dict load(self, state_dict) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2126, in load load(child, child_state_dict, child_prefix) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2126, in load load(child, child_state_dict, child_prefix) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2126, in load load(child, child_state_dict, child_prefix) [Previous line repeated 1 more time] File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2120, in load module._load_from_state_dict( File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_disable_initialization.py", line 225, in <lambda> linear_load_from_state_dict = self.replace(torch.nn.Linear, '_load_from_state_dict', lambda *args, **kwargs: load_from_state_dict(linear_load_from_state_dict, *args, **kwargs)) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/sd_disable_initialization.py", line 191, in load_from_state_dict module._parameters[name] = torch.nn.parameter.Parameter(torch.zeros_like(param, device=device, dtype=dtype), requires_grad=param.requires_grad) File "/usr/local/lib/python3.10/site-packages/torch/_meta_registrations.py", line 4507, in zeros_like res = aten.empty_like.default( File "/usr/local/lib/python3.10/site-packages/torch/_ops.py", line 448, in __call__ return self._op(*args, **kwargs or {}) File "/usr/local/lib/python3.10/site-packages/torch/_refs/__init__.py", line 4681, in empty_like return torch.empty_permuted( RuntimeError: unknown format type:77 Stable diffusion model failed to load Applying attention optimization: InvokeAI... done. Exception in thread Thread-3 (load_model): Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/local/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/initialize.py", line 154, in load_model devices.first_time_calculation() File "/home/zero/Downloads/weights/stable-diffusion-webui/modules/devices.py", line 276, in first_time_calculation linear = torch.nn.Linear(1, 1).to(device, dtype) File "/usr/local/lib/python3.10/site-packages/torch_npu/utils/_module.py", line 78, in to return self._apply(convert) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 833, in _apply param_applied = fn(param) File "/usr/local/lib/python3.10/site-packages/torch_npu/utils/_module.py", line 76, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) RuntimeError: unknown format type:-1140785152
评论 (
2
)
登录
后才可以发表评论
状态
DONE
TODO
WIP
DONE
CLOSED
REJECTED
负责人
未设置
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
Python
1
https://gitee.com/ascend/ModelZoo-PyTorch.git
git@gitee.com:ascend/ModelZoo-PyTorch.git
ascend
ModelZoo-PyTorch
ModelZoo-PyTorch
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册